Rendering a loading screen for N seconds when accessing the site

I would like to render my loading screen for 5 seconds prior to loading the home route each time the app / site is loaded.

Any advice on how to do this. The methods i’ve tried just loads the loading screen the entire time or it does not ever load the home route.