iPhone 15 vs Pixel 8: screen size and viewport
The iPhone 15 lays web pages out at 393 × 852 CSS px with a pixel ratio of 3; the Pixel 8 at 412 × 915 with 2.625. The Pixel 8 is 19 px wider and 63 px taller. The iPhone 15 has more physical pixels, but that only makes it sharper: the CSS viewport decides how much of a page fits.
The two screens side by side
Specs compared
| Spec | iPhone 15 | Pixel 8 | Difference |
|---|---|---|---|
| Viewport, portrait (CSS px) | 393 × 852 | 412 × 915 | −19 px wide, −63 px tall |
| Device pixel ratio | 3 | 2.625 | +0.375 for the iPhone 15 |
| Physical resolution | 1179 × 2556 | 1082 × 2402 | iPhone 15: 16% more pixels |
| Aspect ratio | 19.5:9 | 20:9 | Pixel 8 is taller |
| Visible height, portrait, with browser bars | ~662 px | ~819 px | −157 px for the iPhone 15 |
| Landscape width (CSS px) | 852 px | 915 px | −63 px for the iPhone 15 |
| Visible height, landscape | ~343 px | ~332 px | +11 px for the iPhone 15 |
| First released | 2022 | 2021 | 1 year 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 Pixel 8 is 19 CSS px wider (412 vs 393, 5% more). No common breakpoint falls between 393 and 412 px, so with typical media queries both get the same layout and the extra 19 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 182 px wide on the Pixel 8 and 172 px on the iPhone 15. Check that buttons, prices and long words still fit in the narrower one.
Pixel density and image sizes
The iPhone 15 has the denser screen: 3× against 2.625×. A full-width image (sizes="100vw") needs about 1179 px on the iPhone 15 and 1082 px on the Pixel 8 to look sharp — more on the iPhone 15 even though its viewport is narrower.
With a srcset such as 640w, 828w, 1080w, 1290w, 1440w, 1640w, 2048w, the browser would normally pick the 1290w file on the iPhone 15 and the same one on the Pixel 8.
The Pixel 8's ratio of 2.625 is fractional: one CSS pixel isn't a whole number of device pixels, so 1 px borders and hairlines can be rounded unevenly. Check thin lines on that screen rather than assuming they match.
How much fits above the fold
On first load about 819 px of the page is visible on the Pixel 8 and 662 px on the iPhone 15: 157 px less (24%) on the iPhone 15, roughly 6 lines of 16 px body text at a 1.5 line height.
If your main button sits just above the fold on the Pixel 8, it can end up below it on the iPhone 15. Keep the headline and the main action within the first 662 px, and size full-screen sections with 100svh rather than 100vh — see the 100vh problem on mobile.
Relative to its width, the Pixel 8 has the taller screen (19.5:9 vs 20:9), so the same content is laid out narrower but more of its length fits at once.
In landscape
Turned sideways, the iPhone 15 is 852 px wide and the Pixel 8 915 px. The visible height drops to about 343 and 332 px, so a 64 px sticky header covers 19% and 19% of the screen — under the 25% at which MobileCheck flags fixed bars covering the page.
Different browser engines
The iPhone 15 renders with WebKit (Safari's engine) and the Pixel 8 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 15 viewport size — one screen for the iPhone 14 Pro / 15 / 15 Pro / 16
- Pixel 8 viewport size — one screen for the Google Pixel 6 / 7 / 8
Or open the free check with the iPhone 15 and the Pixel 8 preselected: full-page screenshots in WebKit and Chromium, with problems such as small text and crowded buttons highlighted.
Related comparisons
- iPhone 15 vs Galaxy S24 — 393 vs 360 px wide, 3× vs 3×
- Xiaomi 13 vs iPhone 15 — both 393 px wide, 873 vs 852 px tall
- iPhone 16 vs iPhone 17 — 393 vs 402 px wide, 3× vs 3×
- iPhone 15 Pro vs iPhone 15 Pro Max — 393 vs 430 px wide, 3× vs 3×
- iPhone 14 vs iPhone 15 — 390 vs 393 px wide, 3× vs 3×
- iPhone 11 vs iPhone 15 — 414 vs 393 px wide, 2× vs 3×
Compare other devices → · All mobile viewport sizes →
Frequently asked questions
Is the iPhone 15 screen bigger than the Pixel 8?
In CSS pixels, which decide how much of a page fits, the Pixel 8 is larger: 412 × 915 against 393 × 852. The iPhone 15 has more physical pixels (1179 × 2556), which makes it sharper rather than roomier.
Do I need different CSS for the iPhone 15 and the Pixel 8?
Usually not. No common breakpoint falls between their widths (393 and 412 px), so a fluid layout gets the same rules on both and only stretches by 19 px.
How much of a web page is visible on the iPhone 15 vs the Pixel 8?
About 393 × 662 CSS px on the iPhone 15 and 412 × 819 on the Pixel 8 when a page first opens in portrait, after the status bar and the browser's bars. Bar heights are our device profiles' estimates.