The viewport is the part of the browser window in which your page's content is visible. When your page's content width is smaller or larger than the viewport width, it may not render correctly on mobile screens. For example, if the content width is too large, content may be scaled down to fit, making text difficult to read.
How the Lighthouse content width audit fails
Lighthouse flags pages whose width isn't equal to the width of the viewport:
The audit fails if
window.innerWidth does not equal
Each PWA audit is weighted equally in the Lighthouse PWA Score, except for three manual audits: Site works cross-browser, Page transitions don't feel like they block on the network, and Each page has a URL. Learn more in the Lighthouse Scoring Guide.
How to make your page fit on mobile screens
This audit is a roundabout way of determining if your page is optimized for mobile devices. See Google's Responsive Web Design Basics for an overview of how to create a mobile-friendly page.
You can ignore this audit if:
- Your site does not need to be optimized for mobile screens.
- The content width of your page is intentionally smaller or larger than the viewport width.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.