Skip to content

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)

Scaled Viewport Preview
top 59px
393 × 852Portrait · 3x
bottom 34px

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.

DeviceViewportPhysicalDPR
iPhone 15393 × 8521179 × 25563x
iPhone 15 Pro393 × 8521179 × 25563x
iPhone 15 Pro Max430 × 9321290 × 27963x
iPhone 16393 × 8521179 × 25563x
iPhone 14390 × 8441170 × 25323x

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).