MobileCheck

iPhone 12 / 13 mini, X, XS & 11 Pro viewport size

iPhone 12 / 13 mini (2020) lays web pages out at 375 × 812 CSS pixels with a pixel ratio of 3. The iPhone X, iPhone XS, iPhone 11 Pro use exactly the same viewport and pixel ratio, so everything on this page applies to them too.

Viewport, portrait375 × 812
Viewport, landscape812 × 375
Device pixel ratio3
Screen resolution1125 × 2436
Aspect ratio19.5:9
Visible on first load375 × ~635

Browser bars and the visible area

The viewport height is the whole screen, but Safari on iOS keeps part of it for its own interface. In portrait about 47 px at the top (status bar and notch area) and 130 px at the bottom (Safari's address bar and toolbar) are covered, leaving roughly 375 × 635 CSS px for the page when it first opens. In landscape the bars take about 50 px.

635 px visible page 47 px: status bar 130 px: Safari toolbar 375 × 812 screen
To scale: the part of the screen a page gets when it first opens in Safari on iOS.

That is why 100vh can be taller than what people see. Use 100svh for the smallest visible height, 100dvh for the current one, and keep the most important content and buttons within the first 635 px.

Your screen vs the iPhone 12

Comparing with your browser window needs JavaScript. The iPhone 12 is 375 × 812 CSS px; check your own viewport.

Media queries that match the iPhone 12 / 13 mini, X, XS & 11 Pro

Media queryPortrait (375px)Landscape (812px)
(min-width: 360px)matchesmatches
(min-width: 390px)nomatches
(min-width: 414px)nomatches
(min-width: 480px)nomatches
(min-width: 600px)nomatches
(min-width: 768px)nomatches
(min-width: 1024px)nono
(min-resolution: 2dppx)matches
(pointer: coarse) and (hover: none)matches (touch screen)
/* iPhone 12 / 13 mini, portrait */
@media (max-width: 375px) and (orientation: portrait) { … }

/* high-density screen (3×) */
@media (min-resolution: 3dppx) { … }

Rather than targeting one device, write fluid styles and add breakpoints where your layout needs them — the same CSS then works on the 6 other devices with the same width and hundreds of models with similar sizes.

Testing on the iPhone 12 / 13 mini, X, XS & 11 Pro

Apple devices render with WebKit, the engine behind Safari. Chrome's device toolbar only resizes Chromium, so fonts, form controls and toolbar behaviour can differ from a real iPhone. MobileCheck renders iPhones with WebKit — see how to test a website on an iPhone.

The iPhone 12 / 13 mini is one of the 54 devices in the free check.

Same viewport width

Similar phones

Screen size comparisons

All mobile viewport sizes → · Compare any two devices →

Frequently asked questions

What is the iPhone 12 / 13 mini, X, XS & 11 Pro viewport size?

375 × 812 CSS pixels in portrait and 812 × 375 in landscape, with a device pixel ratio of 3.

What is the iPhone 12 / 13 mini, X, XS & 11 Pro screen resolution?

1125 × 2436 physical pixels (the CSS viewport multiplied by the pixel ratio of 3).

How much of the screen does the browser take on the iPhone 12 / 13 mini, X, XS & 11 Pro?

About 47 px at the top and 130 px at the bottom in portrait with Safari on iOS, so roughly 635 CSS px of the page is visible when it first opens.