> Dea 0.9.9 documentation.
> Canonical page: https://dea.dardanica.app/docs/guides/responsive/
> Documentation index: https://dea.dardanica.app/llms.txt

# Test screen sizes and devices

Viewport controls change the page's layout dimensions. Device emulation also changes browser metadata and input behavior. These settings belong to each tab, so you can keep several test sizes open together.

## Responsive mode

The page follows the available browser stage as you resize the window or terminal divider. Responsive mode keeps a desktop browser identity at every width. A narrow responsive stage alone does not switch the site to a mobile identity.

Use `set_viewport` with `preset: "responsive"` to unpin a viewport.

## Pin a layout size

`set_viewport` supports these named CSS viewport sizes:

| Preset | Width × height |
| --- | --- |
| `mobile` | 390 × 844 |
| `tablet` | 820 × 1180 |
| `laptop` | 1280 × 800 |
| `desktop` | 1440 × 900 |
| `wide` | 1920 × 1080 |

Or supply `width` from 240 to 3840 and an optional `height` from 320 to 2400. If the viewport is larger than the stage, Dea scales its display down while retaining the requested layout size.

A pinned width below 768 uses a mobile browser identity. At 768 and above it uses a desktop identity. Crossing that boundary reloads the page once, so save work before changing it.

## Emulate a device

Call `list_devices` for the running app's presets, then `set_device` with the selected ID. Current presets include Responsive, iPhone 15, iPhone Pro Max, Pixel 8, iPad Air, and Desktop.

Fixed device presets set the viewport, device pixel ratio, browser metadata, and touch behavior. The device's reported screen size includes space that may be reserved for browser or system bars; use the actual returned viewport for layout comparisons.

Dea still renders through Chromium. An iPhone preset does not run Safari's WebKit engine. Use real devices or the corresponding browser engine for engine-specific compatibility testing.

## Compare tabs

Ask your agent:

```text
Open http://localhost:3000 in two named tabs: app-wide and app-narrow.
Set app-wide to desktop and app-narrow to mobile using set_viewport.
Check that navigation, forms, and long text fit at both sizes.
Save a screenshot of each and report any horizontal overflow.
```

Replace the example URL with your running app. `set_split_view` can show the two tabs together. Each keeps its own viewport.

## Orientation, locale, and location

`set_orientation` changes the tab's orientation. `set_emulation` can override timezone, locale, and test geolocation. Verify the application's displayed dates, numbers, and location behavior after applying them; browser permission and application behavior still matter.
