GLOBAL BRIDGE LABS
← All posts/Website Development

Website scrolls sideways on mobile? Causes and fixes

If your website scrolls sideways on mobile, one element is wider than the screen. The seven usual causes, how to find the culprit and how to fix it.

By Dhanushka Pinto, Co-founder / DirectorPublished 6 min read
Website scrolls sideways on mobile: key takeaways infographic by Global Bridge Labs
Key takeaways from this article. Share it with the link and credit Global Bridge Labs.
On this page

Key takeaways

When a website scrolls sideways on mobile, something on the page is wider than the screen. It is nearly always one element: an image, a table, an embedded map or a long web address. The page wobbles as visitors scroll, content is cut off at the edge, and the site feels broken. Finding the culprit takes minutes.

  • One element wider than the screen makes the whole page scroll sideways.
  • Usual culprits: images, tables, embeds, long links and fixed-width boxes.
  • WCAG expects content to reflow at 320 CSS pixels wide without sideways scrolling.
  • Hiding the overflow masks the symptom and can hide content.

Page sliding sideways on your phone? Send us the URL on WhatsApp and we will find what is causing it.

Chat on WhatsApp →

Why does a website scroll sideways on mobile?

A website scrolls sideways on mobile when at least one element is wider than the viewport. The browser has to make room for it, so the page becomes wider than the screen and can be dragged left and right. Everything else on the page may be perfectly responsive.

It matters for three reasons. Visitors lose their place while scrolling down. Content at the right edge, often a button or the end of a sentence, is cut off. And it signals carelessness on the device most of your visitors use. Google's original mobile-friendly criteria in 2015 included avoiding horizontal scrolling.

What are the usual causes?

Seven causes account for almost every case. Most were added after the site was built, by someone pasting in content or installing a widget, which is why a site that once behaved can start to scroll sideways.

  • An image with a fixed pixel width larger than the screen.
  • A table with too many columns to fit.
  • An embedded map, video or booking widget with a fixed width.
  • A long web address or email address that cannot wrap.
  • A box or section set to a fixed width in pixels.
  • An element positioned partly off screen, such as a decorative shape or slide-in panel.
  • A full-width section set wider than the screen by a rounding or scrollbar quirk.

How do you find the element responsible?

Scroll the page sideways on your phone and look at what sticks out at the right-hand edge as you move down. The culprit is usually visible: a picture, a table or a map that runs past everything else. Note which page and which section, because the cause is often on one page only.

If nothing is obvious, a developer can find it quickly in Chrome DevTools by setting the screen to a phone width and inspecting elements that extend beyond the page. Checking at 320 pixels wide, the smallest common phone width, catches problems that a larger phone hides.

  • Test each page type: home, service, blog post, contact and landing pages.
  • Check in portrait at the narrowest phone you can find.
  • Look for the widest thing on the page at the point where it scrolls.
  • Remove recently added content or widgets one at a time to isolate it.

How is each cause fixed?

Each cause has a standard fix, and most are a line or two in the stylesheet. Images and embeds are told never to exceed the width of their container. Long strings are allowed to break. Fixed-width boxes are given flexible widths. Tables need a design decision.

  • Images and video: set a maximum width of 100% so they shrink to fit.
  • Embeds: wrap maps and iframes in a container that scales.
  • Long links: allow them to wrap, or replace the text with a short label.
  • Fixed-width boxes: change to percentages or a maximum width.
  • Off-screen decoration: contain it within its section.
  • Tables: stack, simplify or let the table alone scroll inside its own frame.

Want the offending elements fixed properly, not hidden? Message us on WhatsApp.

Chat on WhatsApp →

Why not simply hide the overflow?

Because it hides the symptom and keeps the fault. A common quick fix tells the page to hide anything that overflows horizontally. The sideways scroll stops, but the oversized element is still there, and whatever part of it sat beyond the edge is now invisible and unreachable.

If that hidden part was the last column of a price table or the submit button of an embedded form, you have swapped a cosmetic problem for a functional one. Used as a last safeguard after the real cause is fixed, hiding overflow is reasonable. Used instead of a fix, it is how content goes missing.

What does accessibility guidance say?

WCAG success criterion 1.4.10, Reflow, at level AA, expects content to be presented without scrolling in two dimensions at a width equivalent to 320 CSS pixels. In practice that means a page should scroll vertically only on a small phone. The criterion exempts content that needs two dimensions to be understood, such as maps, diagrams and data tables.

So a wide data table may scroll sideways within its own frame and still meet the guidance. The whole page scrolling sideways because of that table does not. The difference is whether the visitor can read the rest of the page normally.

What does this look like in practice?

A pattern we see on sites that staff update themselves: a new team photo is uploaded at 2,400 pixels wide into a text block, or a supplier's booking widget is pasted in with a fixed width of 600 pixels. The page looked fine on the laptop where it was edited. On phones, that one page now slides sideways.

Nobody connects the complaint 'the site is broken on my phone' with last Tuesday's edit. A site-wide rule that caps images and embeds at the width of their container prevents the whole category. Global Bridge Labs (GBL) adds that safeguard to every build so that content edits cannot break the layout.

Next step

Open each main page on a phone and try to drag it left. If any page moves, note what is sticking out at the edge and you have found your fix list.

Message us on WhatsApp and we will check every template for sideways scrolling and tell you what is causing it.

Chat on WhatsApp →

Sources and further reading

Frequently asked questions

Why does my website scroll sideways on my phone?

Because one element on the page is wider than the screen, such as a large image, a wide table, an embedded map or a long web address. The browser widens the page to fit it, which lets the whole page be dragged left and right.

How do I fix horizontal scrolling on a mobile website?

Find the element that extends past the right edge and make it flexible. Images and embeds should have a maximum width of 100%, long links should be allowed to wrap, fixed-width boxes should use flexible widths, and wide tables should be redesigned or scroll within their own frame.

Is it acceptable for a table to scroll sideways on mobile?

Yes, if only the table scrolls inside its own container and the rest of the page stays put. WCAG's reflow criterion exempts data tables that need two dimensions. Add a visual cue so visitors know there is more to see, or consider stacking rows as cards.

Does horizontal scrolling affect SEO?

It is a sign of a poor mobile experience. Avoiding horizontal scrolling was one of Google's original mobile-friendly criteria, and its page experience guidance asks whether content displays well on mobile. The larger cost is visitors leaving a page that feels broken.

Written by

Dhanushka Pinto
Dhanushka Pinto
Co-founder / Director

Global Bridge Labs (GBL) is a UK–Sri Lanka partner for social media, websites and BPO. Everything here comes from client delivery, not theory.

Share this article

Reading is good.
Fixing is better.

30 minutes with our team and you'll leave knowing which of the three problems to fix first.

Book a 30-Minute Consultation →
Keep reading