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.
The two screens side by side
Specs compared
| Spec | iPhone 17 | Galaxy S25 | Difference |
|---|---|---|---|
| Viewport, portrait (CSS px) | 402 × 874 | 360 × 780 | +42 px wide, +94 px tall |
| Device pixel ratio | 3 | 3 | same |
| Physical resolution | 1206 × 2622 | 1080 × 2340 | iPhone 17: 25% more pixels |
| Aspect ratio | 19.5:9 | 19.5:9 | about the same |
| Visible height, portrait, with browser bars | ~684 px | ~684 px | same |
| Landscape width (CSS px) | 874 px | 780 px | +94 px for the iPhone 17 |
| Visible height, landscape | ~352 px | ~280 px | +72 px for the iPhone 17 |
| First released | 2024 | 2022 | 2 years apart |
| Engine in MobileCheck | WebKit (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
- iPhone 17 viewport size — one screen for the iPhone 16 Pro / 17 / 17 Pro
- Galaxy S25 viewport size — one screen for the Samsung Galaxy S22 / S23 / S24 / S25
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
- iPhone 16 Pro vs Galaxy S24 Ultra — 402 vs 384 px wide, 3× vs 2.813×
- iPhone 17 vs Pixel 9 — 402 vs 412 px wide, 3× vs 2.625×
- iPhone 15 vs Galaxy S24 — 393 vs 360 px wide, 3× vs 3×
- iPhone Air vs Galaxy S25 — 420 vs 360 px wide, 3× vs 3×
- iPhone 17 Pro vs Pixel 9 Pro — 402 vs 427 px wide, 3× vs 3×
- Xiaomi 15 vs iPhone 17 — 400 vs 402 px wide, 3× vs 3×
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.