I need an overlay that covers the entire screen.
width: 100vw;
height: 100vh;
The website I'm working on is not responsive and has a fixed width of 1000px. I have set the meta tag as:
<meta name="viewport" content="width=device-width" />
This loads the site at 1000px wide but uses the device viewport to enable the use of media queries and javascript for feature control.
The problem is that 100vh only equals the viewport when the pixel ratio is 1:1 and not zoomed out, making my 100vh/vw values smaller than the actual viewport size.
Is there a way to cover the viewport regardless of zoom level, while still detecting smaller screens?
It's important to note that this issue occurs specifically on mobile browsers, as mentioned by @Benjamin Solum.