Real Smartphone World

Desktop and mobile layouts differ due to system UI elements (address bar, on-screen keyboard).

1. The 100vh Problem

On mobile browsers, 100vh is often larger than the visible screen part because the browser doesn't account for address bar height. Content might " fall " under it.

  • Solution: Use new units: dvh (Dynamic Viewport Height).

2. Fixing with Open Keyboard

If you have a button with position: fixed; bottom: 0, when keyboard opens, it might " jump " up and cover half the screen.

  • Solution: Sometimes it's better to use sticky or change design on mobile so important buttons are in text flow.

3. Position: Fixed and Zoom

On old smartphones, when zooming the page with fingers (pinch-to-zoom), fixed elements might start jumping chaotically.

Important

Always test fixed headers and footers on a real device with open keyboard. What looks perfect in Chrome emulator might be unusable in reality.