Skip to content

Apple · iPhone · 2025

iPhone 17 Pro Screen Size & CSS Viewport

The 6.3-inch iPhone 17 Pro renders web pages at 402 × 874 CSS pixels (1206 × 2622 physical pixels at 3x DPR), sitting right between classic 390px and large 440px phones.

CSS Viewport

402 × 874

Physical Pixels

1206 × 2622

Pixel Ratio (DPR)

3x (460 PPI)

Screen Size

6.3" (19.5:9)

Safe Area Insets

62px / 34px

Tailwind Prefix

Default (< 640px sm)

Scaled Viewport Preview
top 62px
402 × 874Portrait · 3x
bottom 34px

Dynamic Island top inset (62px portrait) and 34px bottom home indicator. Shares the 402 × 874 CSS viewport introduced with the 6.3-inch Pro form factor.

Copy-paste CSS

iPhone 17 Pro CSS media queries & safe areas

Use content-based responsive breakpoints first, and reach for these snippets when auditing device-specific edge cases.

Responsive max-width query

/* iPhone 17 Pro Portrait (402x874, 3x) */
@media only screen and (max-width: 402px) {
  /* styles for iPhone 17 Pro and narrower viewports */
}

Exact device & DPR query

/* Target iPhone 17 Pro specifically (402px width, 3x DPR) */
@media only screen
  and (device-width: 402px)
  and (device-height: 874px)
  and (-webkit-min-device-pixel-ratio: 3) {
  /* device-specific overrides */
}

Safe-area inset helpers

/* iPhone 17 Pro safe-area padding (top 62px, bottom 34px) */
.sticky-header {
  padding-top: env(safe-area-inset-top, 62px);
}
.sticky-footer {
  padding-bottom: env(safe-area-inset-bottom, 34px);
}

Frontend QA notes

What breaks most often on iPhone 17 Pro

Browser environment: iOS Safari (WebKit) · Mobile.

  • Check 2-column card grids and horizontal pill navs at 402px — layouts tuned only for 430px–440px frequently wrap awkwardly here.
  • Respect env(safe-area-inset-bottom) on floating action bars so controls do not collide with the iOS home indicator.
  • Verify sticky headers and modals in both portrait (402px) and landscape (874px, where Tailwind md: triggers).

Side-by-side

Compare iPhone 17 Pro with nearby devices

Check how viewport width and pixel ratio shift across adjacent models.

DeviceViewportPhysicalDPR
iPhone 17 Pro402 × 8741206 × 26223x
iPhone 17 Pro Max440 × 9561320 × 28683x
iPhone 17402 × 8741206 × 26223x
iPhone 16 Pro402 × 8741206 × 26223x
iPhone 15 Pro393 × 8521179 × 25563x

Test iPhone 17 Pro + 50 devices side by side

Stop resizing Chrome DevTools one viewport at a time. Sizzy renders iPhone 17 Pro, narrow 360px Android, iPad, and desktop simultaneously with synced scrolling, unified console, and one-click device screenshots.

Questions

iPhone 17 Pro viewport questions

  • The iPhone 17 Pro CSS viewport size is 402 × 874 pixels in portrait (874 × 402 pixels in landscape).