MobileCheck

iPhone 16 Pro, 17 & 17 Pro viewport size

iPhone 16 Pro / 17 / 17 Pro (2024) lays web pages out at 402 × 874 CSS pixels with a pixel ratio of 3.

Viewport, portrait402 × 874
Viewport, landscape874 × 402
Device pixel ratio3
Screen resolution1206 × 2622
Aspect ratio19.5:9
Visible on first load402 × ~684

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 54 px at the top (status bar and Dynamic Island area) and 136 px at the bottom (Safari's address bar and toolbar) are covered, leaving roughly 402 × 684 CSS px for the page when it first opens. In landscape the bars take about 50 px.

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 684 px.

Media queries that match the iPhone 16 Pro, 17 & 17 Pro

/* iPhone 16 Pro / 17 / 17 Pro, portrait */
@media (max-width: 402px) 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 hundreds of models with similar sizes.

Testing on the iPhone 16 Pro, 17 & 17 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 16 Pro / 17 / 17 Pro is one of the 51 devices in the free check, and you can tap around your site on it in the phone window.

Similar phones

All mobile viewport sizes →

Frequently asked questions

What is the iPhone 16 Pro, 17 & 17 Pro viewport size?

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

What is the iPhone 16 Pro, 17 & 17 Pro screen resolution?

1206 × 2622 physical pixels (the CSS viewport multiplied by the pixel ratio of 3).

How much of the screen does the browser take on the iPhone 16 Pro, 17 & 17 Pro?

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