Applesmartphone2025
Apple iPhone 17
Complete CSS viewport dimensions, device pixel ratio, physical screen specs, and downloadable high-resolution transparent mockup.

CSS Viewport
402 × 874px
Physical Resolution
1206 × 2622px
Device Pixel Ratio
@3xDPR
Diagonal Screen
6.3"(16 cm)
Aspect Ratio
19.5:9
Pixel Density
458PPI
Hardware & System Profile
Operating SystemiOS 26.0
Rotation SupportedYes (Portrait & Landscape)
Network Simulation5G
Screen CurvatureFlat Display
Device User-Agent String
Use this string in Chrome DevTools or curl to simulate this exact device.
Mozilla/5.0 (iPhone; CPU iPhone OS 26_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1
CSS Media Query
Target Apple iPhone 17 precisely with CSS media rules.
Portrait Mode
@media only screen
and (min-device-width: 402px)
and (max-device-width: 402px)
and (-webkit-min-device-pixel-ratio: 3) {
/* Apple iPhone 17 (Portrait) */
}Landscape Mode
@media only screen
and (min-device-width: 874px)
and (max-device-width: 874px)
and (-webkit-min-device-pixel-ratio: 3) {
/* Apple iPhone 17 (Landscape) */
}Free Chrome Extension
Test your website on Apple iPhone 17 in 1 click
Install the Responsive Viewer extension to simulate Apple iPhone 17's 402×874 viewport and DPR directly on any active browser tab.