Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Cookie banner broken on mobile: buttons off-screen fix

CNV-133Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A consent banner is the box that asks visitors to accept or reject cookies. On a desktop it has plenty of room. On a phone, long legal text, three or four buttons and large padding can make it taller than the screen. The buttons end up below the visible area, and because the banner is usually fixed in place, the visitor cannot scroll to them.

Why it costs you leads or sales

Most traffic to ads and social links arrives on phones. If the banner covers the page and its buttons cannot be tapped, the visitor sees a blocked page. Many will leave rather than hunt for a way out. Those who stay may be unable to reach your form or checkout button underneath.

Where a mobile visitor gets stuck
  1. Ad clickVisitor lands on a phone
  2. Banner appearsTaller than the screen
  3. Buttons unreachableAccept and Reject are off-screen
  4. Form or checkoutNever reached

The banner fills the screen and its buttons sit below the visible area.

Mobile visitors who reach the formExample numbers
Mobile visitors who reach the form (example)Banner fits screen: 60 %; Buttons off-screen: 25 %023466025Banner fits screenButtons off-screen%

Example: illustrative numbers showing how an unreachable banner can cut the share of mobile visitors who reach a form.

How to check if your site has it

Test the banner on a phone-sized screen
  1. Use a clean session

    Open your site in a private window or clear cookies, so the banner shows again.

  2. Open device mode

    In Chrome, press F12, then the device toolbar icon. Pick a small phone such as iPhone SE, then a larger one.

  3. Check both orientations

    Rotate to landscape. Banners often fail here because very little height is left.

  4. Look for every button

    Confirm Accept, Reject and Settings are all visible and tappable without scrolling the page.

  5. Test on a real phone

    Emulators do not reproduce Safari's collapsing address bar. Check on a real iPhone and Android device.

  6. Try the largest text size

    Increase the phone's font size. Large text can push buttons off-screen even when the default looks fine.

How to fix it

Fix by platform
  1. Open your consent plugin settings

    In the plugin you use (Complianz, CookieYes, Cookiebot and others), find the banner layout or style options. Names vary by plugin.

  2. Choose a compact layout

    Pick a bar or small box for mobile rather than a full-screen popup or wall. Shorten the message text.

  3. Add the CSS fix

    Paste the CSS below into Appearance > Customize > Additional CSS. Replace the selector with your plugin's banner class.

  4. Clear caches

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

Viewport meta tag (in the page head)html
<meta name="viewport" content="width=device-width, initial-scale=1">
Keep the banner inside the screen (replace .cookie-banner with your banner's class)css
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 12px 16px;
}
.cookie-banner .buttons {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
}
.cookie-banner .buttons button {
  flex: 1 1 140px;
  min-height: 44px;
}
@media (max-height: 500px) {
  .cookie-banner { max-height: 80vh; }
}
Banner on a small phone

Broken

  • Banner taller than the screen
  • Accept and Reject sit below the fold
  • Page behind it cannot be used

Fixed

  • Short text and compact layout
  • Max height with inner scrolling
  • Buttons always visible and 44px tall

How to confirm it's fixed

Mobile banner check
  • Clear cookies and reload on a small phone: the banner shows fully
  • Accept, Reject and Settings are all visible without scrolling the page
  • Landscape orientation still shows the buttons
  • Large system font size does not hide the buttons
  • Tapping a button closes the banner and the page is usable
  • Your form or checkout button is reachable afterwards
  • Checked on a real iPhone and a real Android device

How to prevent it happening again

Habits that keep it working
  • Keep banner text short; longer translations need a retest
  • Retest on mobile after any consent plugin or theme update
  • Include a small phone and landscape in your release checklist
  • Avoid fixed pixel heights on the banner
  • Review a recent mobile screenshot of your key pages regularly

How FunnelGuard handles this

Banner hides the buttons on a phone

The banner grows past the screen edge and the buttons cannot be tapped.

Questions people ask

Why is my cookie banner cut off on mobile?

The banner is usually taller than the visible screen, often because of long text, large padding or a fixed pixel height. Browser toolbars on phones reduce the space further. Cap the height, let the content scroll and shorten the text.

How do I fix cookie banner buttons that are off-screen on iPhone?

Use max-height with dvh units, such as 90dvh, so the banner adapts to Safari's changing address bar. Add overflow-y: auto and make the button row sticky at the bottom. Then test on a real iPhone, because emulators do not match Safari exactly.

Can a cookie banner that does not fit on mobile lose me sales?

Yes. If visitors cannot tap Accept or Reject, they may be unable to use the page behind it and will often leave. Consent is also never recorded, so tags that wait for it may not fire.

How do I test my cookie banner on mobile?

Open the site in a private window, use Chrome's device toolbar with a small phone size, and rotate to landscape. Then repeat on a real iPhone and Android phone, also with a large system font size. Check every button is visible and tappable.

Why does my cookie banner only break in landscape?

Landscape leaves very little screen height, so a banner designed for portrait overflows. Add a media query for short screens, such as max-height: 500px, to reduce padding and cap the height.

Can I hide the Reject button on mobile to save space?

Avoid it. Many privacy rules expect rejecting to be as easy as accepting. Shorten the text and use a compact layout so both buttons fit. Check the requirements that apply to you.

Does FunnelGuard detect a broken cookie banner on mobile?

Only partly. It runs a mobile journey and saves a screenshot you can review, and alerts you if a step fails. It does not test every phone size, orientation or text setting, so check those by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: mobile run screenshot.

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.