iPhone 17 Pro Screen Size & Viewport

CSS viewport 402 × 874 pixels at 3× device pixel ratio. The exact size browsers report on the iPhone 17 Pro.

Updated

The iPhone 17 Pro viewport is 402 × 874 CSS pixels (874 × 402 rotated), with a device pixel ratio of 3 on a 1206 × 2622 pixel 6.3″ display.

CSS Viewport402 × 874 px
Rotated874 × 402 px
Physical Resolution1206 × 2622 px
Device Pixel Ratio3×
Aspect Ratio~19.5:9
Screen Size6.3″
ReleasedSeptember 2025
CategoryiPhones

Open your site at the iPhone 17 Pro viewport

Test your site at iPhone 17 Pro (402 × 874)

Why this viewport matters

When a user visits your site on the iPhone 17 Pro, the browser reports window.innerWidth = 402 and window.devicePixelRatio = 3. Your CSS media queries match against the 402px CSS width, not the 1206 × 2622 physical pixel count of the panel.

At 402px it hits no Tailwind breakpoint (base styles only) and no Bootstrap breakpoint. Rotated to 874px it moves to Tailwind md, so check both orientations.

For sharp full-width images, serve a source at least 1206px wide (402 CSS px × 3 DPR) through srcset and let the browser pick it.

/* iPhone 17 Pro: 402×874 CSS px, DPR 3 */
@media (max-width: 402px) {
  /* styles for this width and narrower */
}

@media (min-resolution: 3dppx) {
  /* serve high-density assets */
}

iPhone 17 Pro viewport FAQ

What is the viewport size of the iPhone 17 Pro?

The iPhone 17 Pro reports a CSS viewport of 402×874 pixels in portrait and 874×402 in landscape. Browser toolbars reduce the visible height slightly, so window.innerHeight is usually smaller than the full screen height.

What is the device pixel ratio (DPR) of the iPhone 17 Pro?

The iPhone 17 Pro uses a default device pixel ratio of 3. Each CSS pixel maps to 3×3 physical pixels on its 1206×2622 panel.

Which CSS breakpoint does the iPhone 17 Pro hit?

At 402px wide it matches no Tailwind breakpoint and no Bootstrap breakpoint, so only your base (mobile-first) styles apply. Rotated to 874px it matches Tailwind md (min-width 768px).

How can I test my website at the iPhone 17 Pro screen size without the device?

Open screensize.io, enter your URL and pick iPhone 17 Pro (402×874). It opens your site in a real browser window at exactly that CSS viewport, so media queries, container queries and JavaScript resize logic behave as they would on the device. For touch behaviour and the real browser engine, confirm on hardware before shipping.

Test Screen Sizes Right Now

Use screensize.io to preview your website at any of these resolutions instantly — no DevTools needed.

Open screensize.io →