Is there a way to limit the size of mobile viewports?

I'm having some problems with my viewport on the mobile version of my website. All my elements are displayed and correctly changed on the page, however the page goes much further than the end of the content.

Is there a way to limit the height of my view port? Or could it be another problem that I just don't see?

After further testing, this error only occurs on Android mobile devices. Are there any problems with Android viewports?

+3
source share
1 answer

Remove height=device-height,from   

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />

I found this in your code

if height=device-height,it matches the vertical of the site on the screen

<meta name="viewport" content="width=device-width">

0

All Articles