Viewport emulation is valuable for layout testing, but touch behavior, browser chrome, input focus and scrolling can differ on real hardware.
Implementation approach
Choose representative narrow, medium and wide viewports. Check keyboard navigation, text enlargement, orientation changes, touch gestures and layout overflow. Test key workflows rather than only screenshots.
Example
.content { min-width: 0; }
img { max-width: 100%; height: auto; }
Validation and edge cases
On physical devices, inspect swipe interactions and focus transitions. Test slow networks and reduced motion. Confirm code blocks and tables scroll locally rather than widening the whole page.
Key takeaway
Maintain a short device matrix and record failures by interaction and viewport so they can be reproduced.




