Skip to content
1440px

Samsung Galaxy S8 Screen Size

CSS viewport, native resolution, pixel ratio and pixel density for the Samsung Galaxy S8 — the numbers you need to design and build for it.

CSS viewport · portrait
360 × 740 px

Native resolution 1440 × 2960 px at 4× · 570 PPI · 5.8″ · 18:37. Design at 360 × 740 and export assets at 4×.

Samsung Galaxy S8 display specifications
PropertyValue
CSS viewport (portrait)360 × 740 px
CSS viewport (landscape)740 × 360 px
Native resolution1440 × 2960 px
Device pixel ratio
Pixel density570 PPI
Screen diagonal5.8 in
Panel size2.53 × 5.19 in
Aspect ratio18:37 (exact 18:37)
Total pixels4.26 MP
Released2017
Operating systemAndroid

Among the 130 phones on this site, the Samsung Galaxy S8 has the 118th largest CSS viewport area. Its 360 px width is 39 px below the 399 px average for this category.

Targeting the Samsung Galaxy S8 in CSS

Device-specific media queries are brittle — a new model with the same width will not match. Use them for genuine per-device fixes only, and prefer width buckets for layout.

CSS media query
/* Target Samsung Galaxy S8 specifically */
@media only screen
  and (device-width: 360px)
  and (device-height: 740px)
  and (-webkit-device-pixel-ratio: 4) {
  /* … */
}

/* More useful in practice — the width bucket it falls into */
@media (min-width: 360px) { /* … */ }

Compare with other Android Phones models

Samsung Galaxy S8 compared with nearby Android Phones models
DeviceCSS viewportNativeDPRPPIDiagonal
Samsung Galaxy S8360 × 7401440 × 29605705.8″
Samsung Galaxy S9360 × 7401440 × 29605705.8″
Google Pixel 4393 × 8291080 × 22802.75×4445.7″
Samsung Galaxy S10360 × 7601440 × 30405506.1″
Samsung Galaxy S10+360 × 7601440 × 30405226.4″
Google Pixel 4a393 × 8511080 × 23402.75×4435.81″
Google Pixel 5393 × 8511080 × 23402.75×4326″
Samsung Galaxy S20360 × 8001440 × 32005636.2″
Samsung Galaxy S20 Ultra412 × 9141440 × 32003.5×5116.9″

Questions about the Samsung Galaxy S8 screen

What is the screen size of the Samsung Galaxy S8?

The Samsung Galaxy S8 has a 5.8-inch display. In CSS the viewport measures 360 × 740 px in portrait, and the panel itself has 1440 × 2960 physical pixels at 570 PPI.

What resolution should I design for on the Samsung Galaxy S8?

Design at 360 × 740 and export assets at . That gives you 1440 × 2960 px images, which is exactly what the panel renders. Designing directly at 1440 × 2960 means every measurement is 4 times larger than the CSS values you will write.

What is the device pixel ratio of the Samsung Galaxy S8?

The Samsung Galaxy S8 reports a device pixel ratio of 4. One CSS pixel therefore covers 16 device pixels. You can read it in JavaScript with window.devicePixelRatio.

Which other devices have the same viewport as the Samsung Galaxy S8?

1 other device shares the 360 × 740 CSS viewport: Samsung Galaxy S9. A layout that works on one works on all of them.

Related

Specifications from the manufacturer's published device data. Last verified 7 August 2026. CSS viewport values are the portrait window.innerWidth/innerHeight reported by the stock browser with no browser chrome. See methodology and sources.