Apple · iPhone · 2023
iPhone 15 Screen Size & CSS Viewport
The iPhone 15 screen size in CSS pixels is 393 × 852 with a 1179 × 2556 physical resolution, 3x pixel ratio, and 6.1-inch diagonal.
CSS Viewport
393 × 852
Physical Pixels
1179 × 2556
Pixel Ratio (DPR)
3x (460 PPI)
Screen Size
6.1" (19.5:9)
Safe Area Insets
59px / 34px
Tailwind Prefix
Default (< 640px sm)
Dynamic Island 59px top inset and 34px bottom home indicator. Identical CSS viewport to iPhone 15 Pro and iPhone 16.
Copy-paste CSS
iPhone 15 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 15 Portrait (393x852, 3x) */
@media only screen and (max-width: 393px) {
/* styles for iPhone 15 and narrower viewports */
}Exact device & DPR query
/* Target iPhone 15 specifically (393px width, 3x DPR) */
@media only screen
and (device-width: 393px)
and (device-height: 852px)
and (-webkit-min-device-pixel-ratio: 3) {
/* device-specific overrides */
}Safe-area inset helpers
/* iPhone 15 safe-area padding (top 59px, bottom 34px) */
.sticky-header {
padding-top: env(safe-area-inset-top, 59px);
}
.sticky-footer {
padding-bottom: env(safe-area-inset-bottom, 34px);
}Frontend QA notes
What breaks most often on iPhone 15
Browser environment: iOS Safari (WebKit) · Mobile.
- Use 393 × 852 as your primary modern iOS QA viewport alongside a 360px Android width.
- Prevent unintentional horizontal scroll with overflow-x-clip (rather than overflow-x-hidden, which breaks position: sticky).
- Keep all input font sizes at 16px+ to avoid Safari auto-zoom.
Side-by-side
Compare iPhone 15 with nearby devices
Check how viewport width and pixel ratio shift across adjacent models.
| Device | Viewport | Physical | DPR |
|---|---|---|---|
| iPhone 15 | 393 × 852 | 1179 × 2556 | 3x |
| iPhone 15 Pro | 393 × 852 | 1179 × 2556 | 3x |
| iPhone 15 Pro Max | 430 × 932 | 1290 × 2796 | 3x |
| iPhone 16 | 393 × 852 | 1179 × 2556 | 3x |
| iPhone 14 | 390 × 844 | 1170 × 2532 | 3x |
Test iPhone 15 + 50 devices side by side
Stop resizing Chrome DevTools one viewport at a time. Sizzy renders iPhone 15, narrow 360px Android, iPad, and desktop simultaneously with synced scrolling, unified console, and one-click device screenshots.
Questions
iPhone 15 viewport questions
The iPhone 15 CSS viewport size is 393 × 852 pixels in portrait (852 × 393 pixels in landscape).
The iPhone 15 has a physical screen resolution of 1179 × 2556 pixels on a 6.1" display (460 PPI) with a 3x device pixel ratio.
Use @media only screen and (max-width: 393px) for responsive width targeting, or combine (device-width: 393px) and (-webkit-min-device-pixel-ratio: 3) for high-DPI styling.
You can preview your local site at 393 × 852 alongside other phones, tablets, and desktop viewports simultaneously inside Sizzy, with synced scroll, DevTools, and screenshot capture.