Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Popup close button off-screen on mobile: how to find and fix it

PRF-180High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A popup (also called a modal or overlay) is a box that appears above the page: a newsletter signup, a discount offer, a cookie notice or a booking form. It normally has a close button, usually an X in a corner. On some phones that X ends up off-screen: above the top edge, past the right edge, or below the fold of a popup taller than the screen.

Why it costs you leads or sales

Where the visit is lost
  1. Ad clickVisitor lands on mobile page
  2. Popup opensOverlay covers the page
  3. Close buttonX sits outside the screen
  4. Form or checkoutHidden behind the overlay
  5. ConversionNever happens

The visitor never gets past the popup, so the steps after it are lost.

Mobile visitors who reach the formExample numbers
Mobile visitors who reach the form (example)Close button visible: 60 %; Close button off-screen: 15 %023466015Close button visibleClose button off-scre…%

Example: illustrative numbers showing how an unclosable popup can cut the share of mobile visitors who reach your form.

How to check if your site has it

Check your popups on mobile
  1. List every popup

    Include newsletter, discount, exit-intent, cookie, booking and chat-triggered overlays. Note how each one is triggered (time delay, scroll, button click).

  2. Open each one on a real phone

    Use both an iPhone and an Android phone if you can. Try portrait and landscape.

  3. Look for the close button

    Is the X fully visible, large enough to tap, and not cut off by an edge or the notch? Can you tap it without scrolling?

  4. Try with the keyboard open

    If the popup has an email field, tap it. The keyboard shrinks the visible area and often pushes the close button out of view.

  5. Repeat in browser dev tools

    In Chrome, open DevTools, switch on device mode (the phone and tablet icon) and test small sizes such as 320x568 and 360x640.

How to fix it

Fix by platform
  1. Open your popup plugin's mobile settings

    Plugins such as Elementor Popups, Popup Maker or OptinMonster have size and position options. The exact menu names depend on the plugin.

  2. Replace fixed sizes

    Set width to a percentage or max width, and avoid a fixed pixel height. Use a maximum height related to the screen if the plugin offers it.

  3. Move the close button inside

    Choose a close-button position of inside the popup rather than outside the corner, and enlarge it for mobile.

  4. Add custom CSS if needed

    Paste the CSS shown below into the plugin's custom CSS field or Appearance > Customize > Additional CSS, changing the class name to match your popup.

Keep the popup inside the screen and the close button reachablecss
.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.popup__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.popup__close {
  position: sticky;
  top: 8px;
  float: right;
  margin: 8px;
  width: 44px;
  height: 44px;
  z-index: 2;
}
Popup on a small phone

Before

  • Fixed 700px height, taller than the screen
  • Close button at top: -15px, cut off
  • No scrolling inside the popup
  • Visitor leaves

After

  • Max height 90% of the visible screen
  • Close button inside the box, 44x44 px
  • Content scrolls inside the popup
  • Visitor closes it or completes the form

How to confirm it's fixed

Confirmation checklist
  • The close button is fully visible on a 320x568 screen without scrolling
  • It stays visible with the on-screen keyboard open
  • It works in portrait and landscape
  • It can be tapped easily (about 44x44 px)
  • Tapping outside the popup or pressing Escape also closes it where appropriate
  • The page behind scrolls again after closing
  • Tested on at least one real iPhone and one real Android phone

How to prevent it happening again

Prevention habits
  • Add popups to your pre-launch checklist and test each one on a phone
  • Avoid fixed pixel heights and negative offsets for close buttons
  • Re-test after plugin, theme or popup tool updates
  • Keep popup content short so it fits small screens
  • Limit how many popups can show on one page, and delay them on mobile
  • Keep a list of popups and their triggers so none is forgotten

How FunnelGuard handles this

Questions people ask

Why is the close button on my popup not showing on mobile?

Usually the popup is taller or wider than the phone screen, or the X is placed with a negative offset outside the box, so it falls off an edge. Browser address bars and the on-screen keyboard shrink the visible area and make it worse. Cap the popup's height, let it scroll, and put the close button inside the box.

How do I make a popup fit on a mobile screen?

Use a percentage width with a max width, set max-height to 90dvh (with 90vh as a fallback) and add overflow-y: auto so long content scrolls inside the popup. Also reduce images and padding on small screens. Then test at 320 and 360 pixels wide.

Where should the close button go on a mobile popup?

Inside the popup, near the top corner, and kept visible even when content scrolls (for example with position: sticky). Make it at least about 44x44 pixels so it is easy to tap. Avoid placing it outside the box edge.

Why can't I close a popup on my phone?

If it is your own site, the close button may be off-screen or covered by another element. If it is someone else's, try scrolling inside the popup, rotating the phone, closing the keyboard, or using reader mode. As a site owner, test your popups on real phones so visitors are never stuck.

Do popups on mobile hurt conversions?

They can, especially when they cover the content straight away or can't be closed. A popup that is easy to dismiss and appears at a sensible moment is much less likely to cost you leads. Test the dismiss action as carefully as the offer.

Does FunnelGuard check if my popup close button is visible on mobile?

No. FunnelGuard does not check this yet, though it is a possible future check. It does run your real journeys on a schedule, so a popup that stops a step completing could show up as a failed journey, but it does not test the close button itself.

How can I test popups on different phone sizes?

Use a real iPhone and Android phone first. Then use Chrome DevTools device mode to try small sizes such as 320x568 and 360x640, in portrait and landscape. Open any popup with a form field to check the keyboard case too.

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.