A practical size checklist

Website dimensions: choose useful sizes for a layout check

A website has no universal width and height. Choose viewport dimensions that help you find layout problems, then check the content between those sizes. Here, dimensions mean layout space in CSS pixels; downloaded file size is a separate measurement.

Read the guide

Record the measurement that affects the layout

For a news page, the browser viewport, reading column, and complete article have different dimensions. Record the viewport width and height when reporting a layout issue. Hardware screen resolution alone does not describe the space available to the page.

Website measurements to distinguish
MeasurementWhat it tells you
Viewport widthAvailable layout space: where cards wrap or columns change
Content widthSpace used by a container, which may be narrower than the viewport
Viewport heightVisible vertical space: whether an open menu or dialog remains reachable
Screen resolutionPhysical display pixels, which can differ from the CSS pixels used for layout

Use common screen sizes as starting points

Use your visitors and supported devices to choose the initial set. Without that information, the widths below provide an exploratory check. They are examples, not a device-popularity ranking or a standard every website must follow.

Example viewport widths in CSS pixels
WidthWhat to inspect
320Long headings, crowded controls, and horizontal overflow
360 and 390Wrapping differences between nearby narrow layouts
768Navigation and column changes at a wider size
1024Spacing and the transition toward a spacious arrangement
Your breakpoint ± 1The boundary where your own CSS changes the layout

Repeat the same content and state at each size

In Chrome Device Mode, enter a viewport size and inspect the page. For simultaneous comparisons, open Mobile Viewer and choose presets or custom width and height; up to five mobile previews fit beside desktop. Preview zoom changes the displayed frame size, while the selected dimensions determine the layout inside it.

For the news-page example, compare the same long headline, related-story card, and footer at every width. Then try a shorter height and landscape: extra width does not guarantee that a long menu fits vertically. If a full-height panel using 100vh extends behind mobile browser controls, consider a 100dvh declaration after the 100vh fallback. Compare short heights in the preview, then test the browser controls and keyboard on a real phone; a fixed preview does not reproduce their changing behavior. Record the dimensions and failed state so you can repeat the case after a change.

  • Read the longest realistic headline
  • Open the menu and reach its final item
  • Reveal a form error and check the next control
  • Scroll through the complete page, including the footer
Set the iPhone 17 reference rectangle with the real width and height controls. This capture is before Apply; match 402 × 874 and check the long menu after applying the size. The custom panel does not offer a DPR field.

Mobile Viewer in use

Scroll the image to inspect the details.

Open full original

From an iPad viewport to mobile website dimensions

An iPad viewport can expose a layout that sits awkwardly between phone and desktop. Compare the 820 × 1180 iPad Air preset with a narrower phone and rotate the tablet. Keep CSS dimensions separate from physical display pixels, and measure the actual target browser when browser controls or keyboard height matter.

Frequently asked questions

Why is my meta viewport not working on a phone?

If a phone shows a scaled desktop page, inspect the viewport meta setting in the document head. Check that it uses the intended device width, then look for fixed or minimum widths forcing content wider. Use Mobile Viewer’s custom sizes to compare content wrapping after a CSS change. Verify the viewport configuration on the actual phone: a desktop frame at a custom width alone does not confirm how a mobile browser handles viewport configuration.

What are the standard dimensions of a website?

There is no single correct size. Start with viewports relevant to your visitors, then check intermediate widths around your layout transitions.

Does a desktop preview replace checking a phone?

No. Use it for layout and ordinary interaction checks, then verify phone keyboard, touch, and browser-specific behavior on real devices.

Watch the Mobile Viewer product demo.

Try your chosen dimensions in Mobile Viewer

Enter the viewport width and height you want to check, then compare up to five mobile previews beside desktop. Reuse the failing dimensions when you retest your site.

Install extensionChrome Web StoreFree

Free browser extension · No account required · Runs on your computer