m4n0on Stack Overflow • Recommends
On “CSS3 100vh not constant in mobile browser”
We have new viewport units lvh , svh and dvh to the rescue. This was demonstrated in the latest Google I/O 2022 video on web works.
You would probably want to stick with dvh for the browser to adapt to the mobile device's hidden tabs while scrolling. It works the similar way for width with dvw , lvw and svw units.
Here is a neat illustration from the video: link to this video
Can I use?
This was currently working on my Chrome canary with the flag "Experimental features" enabled.