Skip to main content
Checks for elements that may cause horizontal scrolling
Rule IDmobile/horizontal-scroll
CategoryMobile
ScopePer-page
Severitywarning
Weight5/10

Solution

Horizontal scrolling on mobile is a poor user experience and fails Google’s mobile-friendly test. Common causes: fixed-width elements, images without max-width, wide tables. Use max-width: 100% on images, responsive tables, and avoid fixed pixel widths. Test on mobile devices.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["mobile/horizontal-scroll"]

Disable all Mobile rules

squirrel.toml
[rules]
disable = ["mobile/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["mobile/horizontal-scroll"]
disable = ["*"]