Phone · Android
Moto G4 viewport size
The Moto G4 has a viewport of 360 × 640 CSS pixels and a device pixel ratio of 3, which makes about 1080 × 1920 physical pixels.
Viewport (portrait)
360 × 640
Landscape
640 × 360
Device pixel ratio
3
Screen resolution
1080 × 1920
Screenshot a website on the Moto G4
CSS for the Moto G4
Target this screen size in CSS (portrait):
@media (max-width: 360px) {
/* Moto G4 and smaller */
}
@media (min-resolution: 3dppx) {
/* high-density screens: serve sharper images */
}Design for ranges, not single devices: many phones share the same viewport width (for example 360 px). The Samsung Galaxy S8+ and Samsung Galaxy A55 use it too.
User agent
The user agent Chrome DevTools uses when it emulates the Moto G4:
Mozilla/5.0 (Linux; Android 6.0.1; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<version> Mobile Safari/537.36Chrome inserts its own version number for <version>.
Test your site on the Moto G4
In Chrome, open DevTools (F12), turn on device mode (Ctrl+Shift+M or ⌘+Shift+M) and pick the device from the Dimensions menu, or use the screenshot tool above to capture any page at this size.
Data from the device list built into Chrome DevTools (devtools-frontend, BSD license).
Frequently asked questions
What is the viewport size of the Moto G4?
What is the screen resolution of the Moto G4?
Why is the viewport smaller than the screen resolution?
Other devices
Screenshot API
Take screenshots from your code
screenshotbase renders any website in a real browser and returns the image: full page or viewport, any device size, retina, from 100+ countries, with cookie banners and ads hidden.
Read the docs300 free screenshots every month. No credit card required.
GET https://api.screenshotbase.com/v1/take?url=https://example.com&viewport_width=360&viewport_height=640&device_scale_factor=3
# Response: the image (PNG, JPG, WebP or GIF)
curl -G "https://api.screenshotbase.com/v1/take" \
--data-urlencode "url=https://example.com" \
-d viewport_width=1280 -d viewport_height=800 \
-d format=png \
-H "apikey: YOUR-API-KEY" \
-o screenshot.png