Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Horizontal scroll on mobile: how to find and fix it

CNV-387Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Horizontal scroll on mobile means a visitor can drag your page left or right on a phone. The page content is wider than the screen (the "viewport"). Usually one element is the cause: an image with a fixed width, a table, an embed, a banner using width: 100vw, or a menu that sits off-screen.

Some phones also zoom out to fit the wide content, so text looks tiny. Either way, the page feels broken.

Why it costs you leads or sales

Most paid and social traffic lands on a phone. If the page slides sideways, visitors lose their place, tap the wrong thing or leave. A call-to-action button or form field pushed past the right edge may never be seen.

It also looks untrustworthy on a checkout or lead form, where people are deciding whether to share details or pay.

How sideways scroll loses the lead
  1. Ad clickVisitor lands on phone
  2. Page loads wider than screenOne element overflows
  3. CTA or field off-screenVisitor does not see it
  4. Form submittedNo lead

A wide element pushes the CTA off-screen, so later steps never happen.

Form completion on mobileExample numbers
Form completion on mobile (example)Page fits screen: 4 %; Page scrolls sideways: 2.5 %02342.5Page fits screenPage scrolls sideways%

Example: illustrative numbers showing how an overflowing page could reduce mobile completions. Not real data.

How to check if your site has it

Spot the problem and find the culprit
  1. Test on a real phone

    Open the page and try to drag it sideways. If the whole page moves, you have the issue. Check key pages: landing pages, forms, checkout.

  2. Use device mode in Chrome

    Press F12, then the device toolbar icon (Ctrl+Shift+M). Pick a small phone such as 360 px wide and look for a horizontal scrollbar at the bottom.

  3. Find the wide element

    In the Console, paste the snippet below. It lists elements that extend past the right edge of the screen.

  4. Check the viewport tag

    View the page source and confirm the head contains the viewport meta tag shown below.

Console: list elements wider than the screenjavascript
const w = document.documentElement.clientWidth;
[...document.querySelectorAll('*')].filter(e => e.getBoundingClientRect().right > w + 1).forEach(e => console.log(e.getBoundingClientRect().right, e));
Standard viewport meta taghtml
<meta name="viewport" content="width=device-width, initial-scale=1">
Common causes of sideways scrolling
CauseWhat you seeFix
Image or video with fixed pixel widthMedia sticks out on the rightmax-width: 100%; height: auto
width: 100vw on a full-width sectionSmall overflow where a scrollbar existsUse width: 100% instead
Wide table or code blockTable runs past the edgeWrap in a container with overflow-x: auto
Third-party embed or iframeWidget wider than the screenSet max-width: 100% on the iframe
Missing viewport tagPage looks zoomed outAdd the meta tag
Off-canvas menu or animationHidden panel extends the pageContain it with overflow hidden on its wrapper

How to fix it

Fix the element, not the symptom. Adding overflow-x: hidden to the body can hide the scroll, but it may also clip content and can break sticky headers. Use it only as a last resort.

Safe defaults for media and embedscss
img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

.table-wrap {
  overflow-x: auto;
}

.full-bleed {
  width: 100%; /* not 100vw */
}
Fix by platform
  1. Identify the block or widget

    Use the DevTools snippet above to find the element, then locate it in the block editor or your page builder.

  2. Set a flexible width

    Replace fixed pixel widths with percentages or Auto in the builder's width settings, and check the mobile view in the editor's preview.

  3. Add CSS if needed

    Go to Appearance > Customize > Additional CSS (or the theme editor for block themes) and paste the safe defaults. A theme update can change the result, so retest.

Before and after

Before

  • Page drags sideways
  • CTA partly off-screen
  • Fixed-width image or 100vw banner

After

  • Page stays inside the screen
  • CTA and form fully visible
  • Flexible widths with max-width: 100%

How to confirm it's fixed

Confirmation checks
  • No horizontal scrollbar in Chrome device mode at 320, 360 and 390 px wide
  • The Console snippet lists no elements past the right edge
  • The page cannot be dragged sideways on a real iPhone and a real Android phone
  • CTA buttons and form fields are fully visible and tappable
  • Cookie banners, pop-ups and chat widgets also fit the screen
  • Key pages tested after the fix: landing pages, forms, checkout

How to prevent it happening again

Habits that stop it coming back
  • Test every new page and section in mobile view before publishing
  • Avoid fixed pixel widths and 100vw on layout containers
  • Retest after theme updates, new apps, pop-ups and embeds
  • Wrap wide tables in a scrollable container
  • Keep a short list of key pages and check them on a small phone after each release

How FunnelGuard handles this

FunnelGuard does not check for horizontal scroll yet. It is a possible future check, so today you would need to watch for it yourself.

What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and check each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a layout problem stops a button or form from working, the journey fails at that step and you get one alert with a screenshot and a likely cause, after a re-check from a second region. A page that merely wobbles sideways while everything still works would not be reported.

To watch for it today, use the console snippet and device mode above after every release, and test key pages on real phones. Browser testing tools and Google Search Console's mobile usability reports can also help. A free read-only audit and a free plan (1 site, 2 journeys, daily checks) are available if you want journey monitoring alongside.

Questions people ask

Why does my website scroll sideways on my phone?

At least one element is wider than the screen. Common causes are images or tables with fixed widths, a section set to 100vw, a third-party embed, or an off-screen menu. Use Chrome DevTools device mode to find it.

How do I find which element is causing horizontal scroll?

Open DevTools, switch to a phone size and run a console script that lists elements whose right edge is past the document width. You can also remove elements one at a time in the Elements panel until the sideways scroll disappears.

Is overflow-x: hidden a good fix for horizontal scroll?

Only as a last resort. It hides the scrollbar, but the wide element can still be clipped, and it can break sticky headers. Fix the width of the offending element instead.

Why does 100vw cause horizontal scroll?

100vw includes the width of a vertical scrollbar where one exists, so the element can be slightly wider than the visible area. Use width: 100% for layout containers to avoid the extra width.

Does horizontal scroll on mobile hurt conversions?

It can. Buttons and fields may be pushed off-screen, and the page looks unpolished on checkout and lead forms. How much it costs you depends on your traffic and page, so compare mobile conversion before and after the fix.

Do I need a viewport meta tag?

Yes. Without <meta name="viewport" content="width=device-width, initial-scale=1">, phones may render the page at desktop width and shrink it, which looks like a layout bug.

Does FunnelGuard detect horizontal scroll on mobile?

Not yet. It is a possible future check. FunnelGuard does run your key journeys on a schedule and alerts you when a step such as a form or button fails, but it does not report sideways scrolling by itself.

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.