Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

Why does height: 100vh fail on mobile browsers?

Illustration without a description Illustration without a description

A section sized to height: 100vh can fail on mobile because browser address and navigation bars expand or collapse. Historically, vh often represented a larger viewport state, so content could extend behind visible browser controls when those controls were present.

 

The on-screen keyboard creates another problem for full-height interfaces. Depending on browser behavior, the layout viewport may not shrink as expected, leaving focused fields or bottom actions covered. A rigid height can also clip content when text wraps, localization adds words or accessibility settings enlarge type.

 

Use min-height instead of height when content should be at least one screen tall but still needs room to grow. Modern units provide clearer choices: svh for the small viewport, lvh for the large viewport and dvh for the changing visible height.

 

.hero {
min-height: 100svh;
}

.app-panel {
min-height: 100dvh;
}

 

Test with browser controls expanded and collapsed, the keyboard open, landscape orientation and long content. Choose the unit from the intended behavior. A mechanical replacement of every vh value can introduce new problems. Fixed bottom bars also need safe-area padding and enough content padding to prevent overlap. Verify the final behavior across the full width range, including the spaces between preset devices and design breakpoints. Long labels, translated copy and enlarged text often reveal constraints that short demo content does not exercise. Recheck the component after font, spacing or browser-support changes. Responsive failures often return when a shared token changes, so the test should cover the limiting content state instead of one ideal screenshot. Verify the final behavior across the full width range, including the spaces between preset devices and design breakpoints. Long labels, translated copy and enlarged text often reveal constraints that short demo content does not exercise.