MobileCheck

iPhone 17 vs Galaxy S25: screen size and viewport

The iPhone 17 lays web pages out at 402 × 874 CSS px with a pixel ratio of 3; the Galaxy S25 at 360 × 780 with 3. The iPhone 17 is 42 px wider and 94 px taller.

iPhone 17402 × 874
Galaxy S25360 × 780
Width difference42 px
Visible height~684 vs ~684

The two screens side by side

iPhone 17402 × 874 CSS px~684 px visiblebars 54 + 136 px
Galaxy S25360 × 780 CSS px~684 px visiblebars 80 + 16 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 17Galaxy S25Difference
Viewport, portrait (CSS px)402 × 874360 × 780+42 px wide, +94 px tall
Device pixel ratio33same
Physical resolution1206 × 26221080 × 2340iPhone 17: 25% more pixels
Aspect ratio19.5:919.5:9about the same
Visible height, portrait, with browser bars~684 px~684 pxsame
Landscape width (CSS px)874 px780 px+94 px for the iPhone 17
Visible height, landscape~352 px~280 px+72 px for the iPhone 17
First released202420222 years apart
Engine in MobileCheckWebKit (Safari)Chromium (Chrome)different engines

CSS px are the units media queries see. Visible heights subtract the status bar and the Safari on iOS and Chrome on Android 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 42 CSS px wider (402 vs 360, 12% more). 2 common breakpoints fall between them: (min-width: 375px) (a common small-phone test width), (min-width: 390px) (a common phone test width) match the iPhone 17 but not the Galaxy S25, so a rule written for that width applies on only one of the two.

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 156 px on the Galaxy S25. 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 1206 px on the iPhone 17 and 1080 px on the Galaxy S25 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 17 and the 1080w file on the Galaxy S25. Leave out the 1290w candidate and the iPhone 17 upscales a smaller file.

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

Different screens, same first view: after the status and browser bars, about 684 px of the page is visible on both when it opens (874 − 54 − 136 on the iPhone 17, 780 − 80 − 16 on the Galaxy S25). Whatever fits above the fold on one fits on the other, though text wraps differently at the two widths.

In landscape

Turned sideways, the iPhone 17 is 874 px wide and the Galaxy S25 780 px; (min-width: 840px) matches only the iPhone 17 in landscape. The visible height drops to about 352 and 280 px, so a 64 px sticky header covers 18% and 23% of the screen — under the 25% at which MobileCheck flags fixed bars covering the page.

Different browser engines

The iPhone 17 renders with WebKit (Safari's engine) and the Galaxy S25 with Chromium (Chrome's), so fonts, form controls and some CSS can differ on top of the size difference. Chrome DevTools draws every emulated device with Chromium, which hides WebKit-only problems — see how to test on an iPhone and on Android.

More about these devices

Or open the free check with the iPhone 17 and the Galaxy S25 preselected: full-page screenshots in WebKit and Chromium, 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 17 screen bigger than the Galaxy S25?

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

Do I need different CSS for the iPhone 17 and the Galaxy S25?

Only if your breakpoints fall between 360 and 402 px: a min-width query at 375px or 390px applies to one and not the other. A fluid layout handles both without device-specific rules.

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

About 402 × 684 CSS px on the iPhone 17 and 360 × 684 on the Galaxy S25 when a page first opens in portrait, after the status bar and the browser's bars. Bar heights are our device profiles' estimates.