Popup close button not visible on mobile: why it happens and how to fix it
If visitors can't see or tap the close button on your popup, the popup is usually too tall or too wide for a phone screen, or the button is too small and low in contrast. Make the popup fit the screen, scroll inside itself if needed, and give the close button a tap area of at least 44 by 44 pixels.
A popup that opens on a phone but has no close button you can see or tap is a trap. The button may be tiny, pale grey on a busy photo, or sitting just outside the edge of the screen. Visitors can't get back to your page, so many of them leave. This page explains how to spot the problem and how to fix it, with or without a developer.
What people see
The problem shows up in a few different ways:
- A popup fills the screen and the usual X in the corner is missing.
- The X is there but so small that a thumb keeps missing it and tapping the page behind instead.
- The top of the popup is cut off, and the close button is in the part you can't scroll to.
- The close button is pale or the same colour as the image behind it.
- The popup is wider than the screen, so the right edge (where the X usually lives) is off-screen and the page can be dragged sideways.
- A cookie banner, chat bubble or sticky bar sits on top of the close button.
Why it happens
Most popups are designed and previewed on a desktop monitor. On a phone, a few common things go wrong:
- Fixed sizes. A popup set to a width such as 600 pixels is wider than most phones. Anything positioned at its right edge disappears.
- Too much content. A big image, a long form and a headline can add up to more height than the screen. If the popup is centred and can't scroll, the top and bottom are cut off.
- Browser toolbars. On phones the address bar slides in and out. A popup sized with
100vhcan be taller than the visible area, pushing the bottom or top out of view. The newer100dvhunit follows the visible area more closely. - A close button placed outside the popup. Some designs hang the X over the corner with a negative offset. That looks fine on desktop and gets clipped on a narrow screen.
- Small or low-contrast buttons. A 12 pixel grey X is hard to see and harder to tap.
- Layers fighting each other. Another element with a higher stacking order covers the popup or its button.
Why it matters
The obvious cost is lost visitors and lost sales: someone who can't dismiss a popup can't read your page, order, or call you. It also hurts trust, because a trapped visitor rarely comes back.
There is a search angle too. Google has said that popups covering the main content right after someone arrives from search can count against a page in mobile results, with exceptions for things like legally required notices. Our page on intrusive popups and interstitials covers that in more detail.
Accessibility matters as well. The WCAG 2.2 guidelines ask for interactive targets of at least 24 by 24 CSS pixels at level AA, and 44 by 44 at the stricter AAA level. Apple and Google both recommend roughly 44 to 48 points for touch targets.
How to check if your site has it
You can test this for free in a few minutes:
- Open your site on a real phone, ideally in a private tab so any saved popup preferences don't hide the problem. Trigger the popup the way a visitor would (wait on the page, scroll, or move to leave).
- Try it on a small phone if you can, and again with the phone turned sideways. Landscape often cuts off the top and bottom.
- On a computer, open Chrome, press
F12, click the device toolbar icon, and pick a small phone size such as 360 pixels wide. Reload and trigger the popup. - Check that you can see the close button without scrolling, tap it with your thumb on the first try, and that tapping outside the popup or pressing Escape also closes it.
- Look for sideways scrolling while the popup is open. If it appears, the popup is wider than the screen. See horizontal scroll on mobile for that side of the problem.
The week 5 mobile usability test from SiteMonday covers this type of issue, with the results in a written report and a ranked fix list.
How to fix it
The fix is the same on every platform: make the popup fit the screen, let it scroll inside itself, and make the close button big and obvious.
- Set the popup width to a percentage or
min()value, not a fixed pixel width, so it never exceeds the screen. - Limit the height to the visible area and allow scrolling inside the popup.
- Keep the close button inside the popup, not hanging over its edge.
- Make the button at least 44 by 44 pixels with a clear contrast against its background, for example a dark X on a light circle.
- Add a visible text option such as "No thanks" or "Close" on small screens.
- Make sure the popup sits above other elements, and that cookie banners or chat widgets don't cover the button.
If you or your developer write the CSS directly, it often looks like this (class names will differ on your site):
.popup {
position: fixed;
inset: 0;
margin: auto;
width: min(92vw, 600px);
max-height: 90dvh;
overflow-y: auto;
}
.popup-close {
position: sticky;
top: 0;
margin-left: auto;
width: 44px;
height: 44px;
}
The sticky close button stays at the top of the popup even when its content scrolls.
Common platforms
Where the setting lives depends on your theme or app version, but these are the usual places:
- WordPress: popups usually come from a popup or marketing plugin, or from Elementor Pro's popup builder. Look for a mobile or responsive tab, a close button size setting, and a way to hide the popup on small screens. See the WordPress guide.
- Shopify: popups usually come from a theme section or an installed marketing app. Check the app's design settings for close button size and mobile display, or ask the theme developer. See the Shopify guide.
- Wix, Squarespace and Webflow: open the popup or lightbox in the editor, switch to the mobile view, and check the position and size of the close button, the popup width and the content height. Shorten the content or remove the large image if needed.
- HubSpot: pop-up forms usually have their own mobile preview and display options in the form editor, depending on your HubSpot plan and version.
If you can't make the button visible on mobile, the simplest safe option is to turn the popup off on small screens, unless it is a cookie consent or other legally required notice, which must stay available.
How to confirm the fix worked
Repeat the same tests: real phone, private tab, portrait and landscape, and the 360 pixel width in Chrome. Check three things: the close button is visible without scrolling, one thumb tap closes the popup, and the page behind doesn't scroll sideways. If you changed a plugin or theme setting, clear the site cache and any caching plugin or CDN cache before testing, or you may be looking at the old version.
How to stop it coming back
- Preview every new popup on a phone before publishing it, not just in the desktop editor.
- Keep popup content short. Every extra line pushes the close button further away.
- Re-test after theme, plugin or app updates, since they can change popup styles.
- Avoid stacking several popups, banners and chat widgets on the same page.
- Check after changes to your cookie banner, as it often shares screen space with other popups.
SiteMonday finds and explains problems like this, but fixing them is up to you or your developer.
Step by step for your platform
- Popup close button too small or off-screen on WordPress
- Popup close button too small or off-screen on Shopify
- Popup close button too small or off-screen on Wix
- Popup close button too small or off-screen on Squarespace
- Popup close button too small or off-screen on Webflow
- Popup close button too small or off-screen on Elementor
- Popup close button too small or off-screen on HubSpot CMS
Questions
How big should a popup close button be on mobile?
Aim for a tap area of at least 44 by 44 pixels, which matches Apple's guidance and sits close to Google's 48 point recommendation. WCAG 2.2 sets the minimum at 24 by 24 CSS pixels, so bigger is safer.
Why does my popup close button show on desktop but not on my phone?
Usually the popup is wider or taller than the phone screen, or the button hangs outside the popup edge and gets clipped. Open your site in Chrome's device toolbar at a narrow width to see it.
Can I just turn the popup off on mobile?
Yes, and it is often the safest quick fix, except for cookie consent or other legally required notices. Most popup tools have a setting to hide a popup on small screens, and you can bring it back once the mobile layout works.
Does a popup I can't close hurt my Google ranking?
Google has said that popups covering the main content right after arrival from search can count against a page on mobile. A popup that visitors can't close is also likely to make them leave straight away.
Why is the top of my popup cut off on my phone?
The popup is probably centred but taller than the visible screen, and it can't scroll. Limit its height to the visible area and allow scrolling inside it, or shorten the content.
Should tapping outside the popup also close it?
It is a good habit, because people expect it, and pressing Escape should close it too on devices with a keyboard. Still keep a clearly visible close button, since not everyone will try tapping outside.