What Is My Screen Size?
What Is My Screen Size?

Free screen resolution checker and developer layout tools — private, in-browser.

Explore

  • All Devices
  • All Brands
  • All Categories
  • Compare Devices
  • Blog

Free tools

  • Screen Resolution Checker
  • Monitor Size Checker
  • Viewport Size Checker
  • Screen Resolution Checker
  • PPI Calculator
  • Monitor Scaling Calculator
  • Dual Monitor Desk Calculator
  • Viewing Distance Calculator
  • Aspect Ratio Calculator
  • CSS Viewport Units
  • Breakpoint Checker
  • Fazier badge
  • Featured on Twelve Tools
  • Featured on LaunchIgniter
  • Featured on Startup Fame
  • ai tools code.market
  • Listed on Turbo0
  • Dang.ai
  • Featured on FoundrList
  • Featured on ScrollLaunch
  • Featured on DanielLaunches
  • Featured on Wired Business
  • Featured on ListBulb
  • LiftOff launch badge
  • Launchpadly Startup Directory
  • Featured on Buildlist
  • Listed on listpitch.com
  • Featured on DeepLaunch.io
  • Featured on LemonLaunch
  • Launched on JustLaunched
  • Featured on EasyLaunch
  • Featured on EasyDoFollow
  • Find us on LaunchZone
  • Privacy Policy
  • Affiliate Disclosure

As an Amazon Associate I earn from qualifying purchases.

© 2026 WhatIsMyScreenSize. Built by Yuurrific. Analytics by Seline.

    • Home
    • Detect Resolution
    • Screen DPI
    • Monitor Size
    What Is My Screen Size?
    What Is My Screen Size?
    WhatIsMyScreenSize
    1. Blog
    2. 100dvh vs 100vh: Fix the Mobile Full-Height Bug

    100dvh vs 100vh: Fix the Mobile Full-Height Bug

    by YuyuAugust 02, 2026
    Advertisement

    Quick answer: Use 100dvh for full-height layouts that should match what the user actually sees on mobile. 100vh is the classic unit, but on many phones it ignores the address bar and toolbars, so heroes, splash screens, and sticky footers overflow or leave gaps. Confirm the pixel difference on your device with the CSS viewport units tool.

    Why 100vh breaks on mobile

    vh is 1% of the viewport height. Desktop browsers make that feel simple: the window height barely changes.

    Mobile browsers hide and show chrome as you scroll. Historically, 100vh often meant the large viewport (chrome hidden). When the bar was visible, your "full height" section was taller than the screen. Users saw cut-off buttons, double scrollbars, or a layout that jumped when the bar collapsed.

    That is the bug people mean when they search for 100dvh vs 100vh.

    What 100dvh, 100svh, and 100lvh mean

    Modern CSS adds units that map to small, large, and dynamic viewports:

    UnitMeansBest for
    100vhClassic viewport height (browser-dependent on mobile)Older browsers, simple desktop layouts
    100dvhDynamic viewport — updates as chrome shows/hidesFull-height heroes, app shells, overlays
    100svhSmall viewport — chrome fully visibleContent that must always fit without scrolling the page chrome away
    100lvhLarge viewport — chrome fully hiddenBackgrounds that should fill the max possible height

    Rule of thumb for 2026:

    • Prefer dvh for interactive full-height UI.
    • Use svh when a sheet or wizard must fit even with the keyboard-adjacent browser UI open.
    • Use lvh for decorative fills that can be cropped slightly when chrome is visible.

    Open the live tool on a phone and watch vh and dvh diverge as you scroll the chrome away.

    Advertisement

    Copy-ready CSS patterns

    Full-height hero that tracks the visible viewport:

    .hero {
      min-height: 100vh; /* fallback */
      min-height: 100dvh;
    }
    

    Safe fallback stack with small viewport for critical UI:

    .panel {
      height: 100vh;
      height: 100svh;
      height: 100dvh;
    }
    

    Browsers that understand newer units use the last declared value they support. Putting vh first keeps old engines from ignoring the rule entirely.

    Avoid mixing blindly with position: fixed footers. Fixed elements already use the visual viewport in many browsers. Pair them with the viewport checker and note safe-area insets on notched phones.

    Related concepts developers mix up

    • Screen height (screen.height) is the display, not the browser layout area. See viewport vs screen width vs DPR.
    • innerHeight is JavaScript's live layout height — closer to what dvh tracks than to marketing screen size.
    • DPR scales CSS pixels to physical pixels. It does not fix the vh chrome bug. Read DPR and CSS pixels.

    When you still might use 100vh

    • Desktop-only admin tools where chrome never collapses.
    • Very old browser support matrices that lack dvh (increasingly rare in 2026).
    • Cases where you intentionally want the large viewport height for a background layer.

    Even then, a min-height: 100dvh progressive enhancement costs almost nothing.

    Advertisement

    FAQ

    Is 100dvh better than 100vh?
    For mobile full-height layouts, usually yes. 100dvh follows the visible viewport as browser UI shows and hides. Keep 100vh as a fallback for older browsers.
    What is the difference between dvh, svh, and lvh?
    dvh is dynamic and updates live. svh is the smallest viewport (chrome visible). lvh is the largest viewport (chrome hidden). Measure all four with the CSS viewport units tool.
    Does 100dvh work on desktop?
    Yes. On desktop, dvh, svh, lvh, and vh are often identical or nearly identical because browser chrome does not collapse the same way.
    How do I see 100dvh vs 100vh on my phone?
    Open the free CSS viewport units tool in mobile Safari or Chrome, note the pixel heights, then scroll so the address bar hides and watch dvh update.

    The short answer

    Use 100dvh (with a 100vh fallback) for full-height mobile UI. Reach for svh when content must fit with chrome visible, and lvh for max-height backgrounds. Verify live values with the CSS viewport units tool, then cross-check layout width with What is my viewport.

    Read Previous PostRead Next Post

    Related Articles

    Continue reading with these related posts

    Mobile Screen Sizes in 2026: Compact, Mainstream, and Large Phones

    Mobile Screen Sizes in 2026: Compact, Mainstream, and Large Phones

    Most phones people use sit between about 6.1 and 6.8 inches. This guide groups compact, mainstream, and large models across major brands, then covers the viewport widths and breakpoints that matter for responsive design.

    Aug 25, 2025•Yuyu

    Device Pixel Ratio, CSS Pixels, and Retina Displays: The Full Picture

    One guide to the numbers your screen reports: DPR, CSS pixels, Retina, PPI vs DPI, OS monitor scaling, and browser zoom. No conflicting tabs, no guesswork.

    Jul 05, 2026•Yuyu

    How to Change Screen Resolution on a Mac

    Learn how to change screen resolution on Mac to enhance clarity, maximize screen space, and improve readability with our step-by-step guide.

    Aug 30, 2025•Yuyu

    Table of Contents

    Why 100vh breaks on mobile
    What 100dvh, 100svh, and 100lvh mean
    Copy-ready CSS patterns
    Related concepts developers mix up
    When you still might use 100vh
    FAQ
    The short answer
    Advertisement
    What Is My Screen Size?
    What Is My Screen Size?
    WhatIsMyScreenSize
    HomeDetect ResolutionScreen DPIMonitor Size