MobileCheck

iPhone 16 vs iPhone 17: screen size and viewport

The iPhone 16 lays web pages out at 393 × 852 CSS px with a pixel ratio of 3; the iPhone 17 at 402 × 874 with 3. The iPhone 17 is 9 px wider and 22 px taller.

iPhone 16393 × 852
iPhone 17402 × 874
Width difference9 px
Visible height~662 vs ~684

The two screens side by side

iPhone 16393 × 852 CSS px~662 px visiblebars 54 + 136 px
iPhone 17402 × 874 CSS px~684 px visiblebars 54 + 136 px
Page area on first load (outlined) Status bar and browser bars (shaded)Both screens to the same scale in CSS pixels, portrait. Bar heights are the values of our device profiles, so treat the visible area as approximate.

Specs compared

SpeciPhone 16iPhone 17Difference
Viewport, portrait (CSS px)393 × 852402 × 874−9 px wide, −22 px tall
Device pixel ratio33same
Physical resolution1179 × 25561206 × 2622iPhone 17: 5% more pixels
Aspect ratio19.5:919.5:9about the same
Visible height, portrait, with browser bars~662 px~684 px−22 px for the iPhone 16
Landscape width (CSS px)852 px874 px−22 px for the iPhone 16
Visible height, landscape~343 px~352 px−9 px for the iPhone 16
First released202220242 years apart
Engine in MobileCheckWebKit (Safari)WebKit (Safari)same engine

CSS px are the units media queries see. Visible heights subtract the status bar and the Safari on iOS bars as set in our device profiles; real bar heights vary with settings and scrolling. The release year is that of the first model with each screen.

What this means for your layout

How the width difference affects your layout

The iPhone 17 is 9 CSS px wider (402 vs 393, 2% more). No common breakpoint falls between 393 and 402 px, so with typical media queries both get the same layout and the extra 9 pixels only stretch fluid columns, text lines and images.

In a 2-column card grid with 16 px page padding and 16 px gaps, each card is 177 px wide on the iPhone 17 and 172 px on the iPhone 16. Check that buttons, prices and long words still fit in the narrower one.

Pixel density and image sizes

Both draw each CSS pixel with 3 × 3 device pixels, so text and icons are equally sharp. A full-width image (sizes="100vw") needs about 1179 px on the iPhone 16 and 1206 px on the iPhone 17 to look sharp.

With a srcset such as 640w, 828w, 1080w, 1290w, 1440w, 1640w, 2048w, the browser would normally pick the 1290w file on the iPhone 16 and the same one on the iPhone 17.

Above 2× most people can't see much difference in photos, so capping photo candidates around twice the CSS width saves bytes on both. Keep SVG for icons and logos: they stay sharp at any ratio.

How much fits above the fold

On first load about 684 px of the page is visible on the iPhone 17 and 662 px on the iPhone 16: 22 px less (3%) on the iPhone 16. That's less than one line of body text, so in practice both show the same first screen.

In landscape

Turned sideways, the iPhone 16 is 852 px wide and the iPhone 17 874 px. The visible height drops to about 343 and 352 px, so a 64 px sticky header covers 19% and 18% of the screen — under the 25% at which MobileCheck flags fixed bars covering the page.

Same browser engine

Both are Apple devices, so both render with WebKit, the engine behind Safari. Engine quirks are the same; the differences above come from size alone. Chrome DevTools only emulates the size and still draws with Chromium, so check Apple devices in a WebKit browser — see how to test on an iPhone.

More about these devices

Or open the free check with the iPhone 16 and the iPhone 17 preselected: full-page screenshots in WebKit, with problems such as small text and crowded buttons highlighted.

Related comparisons

Compare other devices → · All mobile viewport sizes →

Frequently asked questions

Is the iPhone 16 screen bigger than the iPhone 17?

In CSS pixels, which decide how much of a page fits, the iPhone 17 is larger: 402 × 874 against 393 × 852. The iPhone 17 has more physical pixels (1206 × 2622), which makes it sharper rather than roomier.

Do I need different CSS for the iPhone 16 and the iPhone 17?

Usually not. No common breakpoint falls between their widths (393 and 402 px), so a fluid layout gets the same rules on both and only stretches by 9 px.

How much of a web page is visible on the iPhone 16 vs the iPhone 17?

About 393 × 662 CSS px on the iPhone 16 and 402 × 684 on the iPhone 17 when a page first opens in portrait, after the status bar and Safari on iOS's bars. Bar heights are our device profiles' estimates.