> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Viewport

Information about the page's viewport (the visible area of the web page).

## Definition

```graphql theme={null}
object Viewport {
  width: Float!
  height: Float!
  deviceScaleFactor: Float
  isMobile: Boolean
  hasTouch: Boolean
  isLandscape: Boolean
}
```

## Fields

### `width`

[Float!](/reference/graphql/scalars/float)

The width of the viewport in CSS pixels.

### `height`

[Float!](/reference/graphql/scalars/float)

The height of the viewport in CSS pixels.

### `deviceScaleFactor`

[Float](/reference/graphql/scalars/float)

The device scale factor (also known as DPR or device pixel ratio). Example: `1.0`, `2.0`, `3.0`.

### `isMobile`

[Boolean](/reference/graphql/scalars/boolean)

Indicates if the viewport is emulating a mobile device.

### `hasTouch`

[Boolean](/reference/graphql/scalars/boolean)

Indicates if the viewport has touch support enabled.

### `isLandscape`

[Boolean](/reference/graphql/scalars/boolean)

Indicates if the viewport is in landscape orientation.
