Mobile Safari / Chrome `100vh` Layout Cut Off Behind Address Bar

Classic `100vh` equals the largest viewport height, ignoring dynamic browser toolbars.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Mobile Safari / Chrome `100vh` Layout Cut Off Behind Address Bar Platform: Web
Common Root Causes:
  • Classic `100vh` equals the largest viewport height, ignoring dynamic browser toolbars.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Use `min-height: 100dvh` (dynamic viewport height) with `100vh` fallback.
Safe Diagnostic Command:
Test on iOS Safari / Android Chrome viewport
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Classic `100vh` equals the largest viewport height, ignoring dynamic browser toolbars. Recommended diagnostic: `Test on iOS Safari / Android Chrome viewport`. Remediation: Use `min-height: 100dvh` (dynamic viewport height) with `100vh` fallback.

Worked Examples

  • Run `Test on iOS Safari / Android Chrome viewport` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-css-100vh-mobile-safari-cut-off · Independently verified: 2026-11-25

Related Resources