Skip to content
FunnelGuard

Fix guide by FunnelsGuard

100vh sections cut off on mobile: how to find and fix it

PRF-182Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

vh means "1% of the viewport height". On desktop that is simple. On phones, browsers such as Safari on iOS and Chrome on Android show a toolbar (address bar, bottom tab bar) that slides away as you scroll. For years, 100vh was calculated as if the toolbar was already gone. When the page first loads, the toolbar is visible, so a height: 100vh section is taller than the visible area.

Viewport units compared
UnitMeasuresBest for
vhUsually the large viewport (toolbars hidden) on phonesDesktop layouts, fallback only
svhSmall viewport (toolbars shown)Hero sections that must fit on first load
lvhLarge viewport (toolbars hidden)Decorative backgrounds
dvhCurrent visible viewport, changes as toolbars moveFull-screen menus, modals, app-style layouts

Why it costs you leads or sales

How a 100vh hero hides the CTA
  1. Visitor opens pageBrowser toolbars are visible
  2. Hero sized at 100vhHeight ignores the toolbar
  3. CTA sits at the bottomPushed behind the toolbar
  4. Click or form startVisitor may never see the button

The section is sized for the screen without toolbars, so the bottom is hidden on first load.

Button hidden under the toolbar

The full-height hero runs under the browser toolbar and covers the button.

How to check if your site has it

Quick manual check
  • Open your landing page on a real iPhone in Safari and an Android phone in Chrome, with the toolbars visible.
  • Check whether the button, form or key text at the bottom of the first section is fully visible without scrolling.
  • Scroll down a little and back up. See if the section jumps or leaves a gap as the toolbar moves.
  • Open any full-screen mobile menu or popup and check its close and submit buttons are reachable.
  • Search your CSS or page builder settings for 100vh, height: 100% on full-screen sections and min-height: 100vh.
  • Repeat in landscape, where the visible height is much smaller.

How to fix it

Fallback plus svhcss
.hero {
  min-height: 100vh;   /* fallback for older browsers */
  min-height: 100svh;  /* fits the screen with toolbars shown */
}

/* Full-screen menu or modal that should follow the toolbar */
.mobile-menu {
  height: 100vh;
  height: 100dvh;
}
Fix by platform
  1. Find the section

    In your page builder or block editor, look for a Cover block, section or row set to full height or minimum height of 100vh. Settings and names depend on your theme or builder.

  2. Add custom CSS

    Go to Appearance > Customize > Additional CSS (or your builder's custom CSS box) and add a rule with the vh fallback followed by the svh value for that section's class.

  3. Clear caches

    Purge your caching plugin and CDN, then retest on a phone.

Optional fallback for very old browsersjavascript
function setVh() {
  document.documentElement.style.setProperty('--vh', window.innerHeight * 0.01 + 'px');
}
setVh();
window.addEventListener('resize', setVh);

/* CSS: min-height: calc(var(--vh, 1vh) * 100); */
Design tips that avoid the problem
  1. Do not pin the CTA to the bottom

    Place the headline, button or form near the top or middle of the hero instead of the bottom edge.

  2. Use min-height, not height

    This lets the section grow if text wraps or the form is taller than the screen.

  3. Leave room for the next section

    A small peek of the next section signals that the page continues.

Hero section sizing

Before

  • height: 100vh on the hero
  • CTA pinned to the bottom
  • Button hidden behind the toolbar on first load

After

  • min-height: 100vh with 100svh override
  • CTA placed in the upper half
  • Button visible with toolbars shown

How to confirm it's fixed

Confirmation checks
  • On a real iPhone in Safari, the whole first screen content is visible on load with the toolbar showing.
  • On Android Chrome, the same is true, including when the address bar is at the top.
  • Scrolling does not cause jumps or gaps at the bottom of the hero.
  • Full-screen menus and popups show their close and submit buttons.
  • Landscape orientation still shows the CTA, or the page scrolls to it easily.
  • Tap the main CTA and submit the form once to confirm it works end to end.

How to prevent it happening again

Prevention habits
  • Add a code review rule: no bare 100vh without an svh or dvh line.
  • Keep a small set of test phones, or use a device testing service, for every new landing page.
  • Check landing pages again after theme, builder or template updates.
  • Keep the CTA out of the bottom edge of full-screen sections.
  • Keep your custom CSS in a child theme or the builder's custom CSS area so updates do not wipe it.

How FunnelGuard handles this

Questions people ask

Why is my 100vh section cut off on mobile?

On phones, 100vh is usually measured as if the browser toolbars were hidden. When the page loads, the toolbars are visible, so the section is taller than the visible screen and the bottom is cut off. Use 100svh or 100dvh instead, with 100vh as a fallback.

What is the difference between vh, svh, lvh and dvh?

vh is the traditional viewport unit and on phones usually matches the large viewport. svh is the small viewport with toolbars shown, lvh is the large viewport with toolbars hidden, and dvh changes as the toolbars appear and disappear.

How do I fix 100vh on iPhone Safari?

Set min-height: 100vh; first as a fallback, then add min-height: 100svh; on the next line. Safari versions that support svh will use it, and older ones will keep the vh value.

Should I use dvh or svh for a hero section?

Use svh for hero sections so the content fits on first load and does not resize as the user scrolls. Use dvh for full-screen menus or modals that should always match the visible area.

Is 100vh still a problem in 2025?

Yes, wherever sites still use 100vh for full-screen sections, including many themes and page builders. The newer units are widely supported, but they only help if your site actually uses them.

Why does my full-screen section jump when I scroll on mobile?

When the toolbar collapses, the visible height changes. If the section uses dvh or JavaScript resizing, it follows that change and can jump. Using svh for the section keeps its size stable.

Can I test 100vh problems in Chrome DevTools?

Not reliably. DevTools device mode resizes the window but does not reproduce real mobile toolbars. Check on a real phone or a cloud device testing service.

Does FunnelGuard detect 100vh cut-off problems?

No, not yet. It is a possible future check. FunnelGuard currently monitors journeys such as forms and checkouts, tracking hits and lead delivery, so test layouts on real phones separately.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.