Popular device viewport sizes

Browse the FlexViewport presets: browser viewport width and height in CSS pixels. Choose a size for testing advice and a comparison of both orientations.

What is a CSS viewport?

The layout viewport is the area used by the browser to calculate layout and width-based media queries. In the tester, an iframe sets that area. CSS pixels are different from physical display pixels; DPR is only descriptive preset metadata.

Why is testing one iPhone not enough?

One size can hide overflow on narrower screens or awkward stretching on wider ones. Compare a phone, tablet and desktop, then check intermediate widths. A preset name does not promise an exact browser reproduction: browser controls, zoom and settings can change the available area.

When should I use a custom viewport?

Use custom sizes near the point where navigation stops fitting or cards become cramped. This tests a layout boundary even when no preset has that width. Laptop and desktop presets start in landscape; their portrait dimensions show the sides swapped.

More about CSS: MDN — Viewport concepts