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.
- Ad clickVisitor lands on a phone
- Banner appearsTaller than the screen
- Buttons unreachableAccept and Reject are off-screen
- Form or checkoutNever reached
The banner fills the screen and its buttons sit below the visible area.
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
Use a clean session
Open your site in a private window or clear cookies, so the banner shows again.
Open device mode
In Chrome, press F12, then the device toolbar icon. Pick a small phone such as iPhone SE, then a larger one.
Check both orientations
Rotate to landscape. Banners often fail here because very little height is left.
Look for every button
Confirm Accept, Reject and Settings are all visible and tappable without scrolling the page.
Test on a real phone
Emulators do not reproduce Safari's collapsing address bar. Check on a real iPhone and Android device.
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
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.
Choose a compact layout
Pick a bar or small box for mobile rather than a full-screen popup or wall. Shorten the message text.
Add the CSS fix
Paste the CSS below into Appearance > Customize > Additional CSS. Replace the selector with your plugin's banner class.
Clear caches
Purge your cache plugin and CDN, then retest on a phone.
Check the consent source
Go to Settings > Customer privacy to see Shopify's built-in banner options, or open the app you use for consent.
Switch to a compact position
Use a bottom bar or small corner layout where the tool allows it, and shorten the text.
Add CSS if needed
In Online Store > Themes > Edit code, add the CSS below to your theme's main stylesheet, using the app's banner selector.
Find the banner tag
If your consent tool loads through a tag, open it in GTM and look for layout or display options in its template fields.
Inject CSS with a Custom HTML tag
Create a Custom HTML tag with the CSS wrapped in style tags, fire it on All Pages, and publish after previewing.
Select the banner element
If the banner is built in Webflow, open the Designer and select it.
Set mobile breakpoints
Switch to Mobile portrait and landscape. Set max height to 90vh, overflow to Auto, and reduce padding and font size.
Publish and test
Publish and check on a real phone.
Find the banner settings
Check the consent tool you embedded in your funnel or website tracking code, and use its mobile layout option if it has one.
Add custom CSS
Paste the CSS below into the funnel or site's custom CSS area, using the banner's class name.
Preview on mobile
Use the mobile preview, then confirm on a real phone.
Open cookie banner settings
In the Wix editor, go to Settings > Cookie Consent Banner (menu names can change).
Use a smaller layout
Pick a bar position and shorten the text. Check the mobile editor view.
Preview mobile
Switch to the mobile editor and preview. Fix any overlap.
Open cookie settings
Go to Settings > Cookies & Visitor Data and review the banner style and position.
Pick a compact style
Choose the smaller bar style over a large pop-up, and shorten the message.
Add CSS if needed
Use Website > Pages > Custom CSS with the snippet below, adjusting the selector.
Check the viewport tag
Make sure your page head has the viewport meta tag shown below.
Cap height and allow scrolling
Use max-height with dynamic viewport units and overflow-y so content scrolls inside the banner while buttons stay reachable.
Pin the buttons
Make the button row sticky at the bottom of the banner so it is always visible.
<meta name="viewport" content="width=device-width, initial-scale=1">.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; }
}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
- 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
- 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
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.
Related issues
- CNV-124Cookie banner covers the main CTAFix guide
- CNV-125Accept button doesn't close the bannerFix guide
- CNV-126Reject button missing (EU non-compliant)Fix guide
- CNV-131Consent banner script fails, page unclickableFix guide
- CNV-132Banner in wrong languageFix guide
- CNV-128Banner reappears on every page (consent not stored)Fix guide