# Device Type

You can customize how the Headless Browser emulates different device types by using the `?p_device` parameter. This allows you to emulate fingerprints of the selected device types (desktop, mobile, tablet), which is particularly useful for scraping responsive layouts, mobile-specific content, or device-dependent behavior such as CAPTCHAs or UI elements.

Available `?p_device` parameter values:

* `desktop` (default) – Emulates a standard desktop browser with a full-size viewport and desktop user-agent string.
* `mobile` – Simulates a smartphone experience with a smaller screen resolution, touch capabilities, and a mobile user-agent.
* `tablet` – Emulates a tablet device, ideal for scraping medium-sized layouts and hybrid mobile/tablet interfaces (available for Chrome only).

For example:

```
wss://username:password@ubc.oxylabs.io?p_device=mobile
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.oxylabs.io/products/headless-browser/features/device-type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
