> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/products/es/headless-browser/device-type.md).

# Tipo de dispositivo

Aprende a establecer tipos de dispositivo para extraer con más precisión diseños adaptables y contenido específico por dispositivo.

En lugar de configurar manualmente los viewports, la compatibilidad táctil y los encabezados User-Agent en la configuración de tu biblioteca local (lo que puede crear discrepancias de fingerprint y provocar tiempos de espera de conexión), el Headless Browser te permite emular clases específicas de dispositivos de forma nativa agregando el `p_device` parámetro de consulta a tu cadena de conexión:

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

### Perfiles de dispositivos compatibles

Puedes configurar el `p_device` parámetro usando tres perfiles de dispositivos compatibles:

<table><thead><tr><th width="123">Valor del parámetro</th><th width="620">Descripción</th></tr></thead><tbody><tr><td><code>desktop</code><br><em>(predeterminado)</em></td><td>Ventana completa, encabezados de plataforma de escritorio, esquemas estándar de entrada de ratón/teclado y una cadena User-Agent de escritorio.</td></tr><tr><td><code>mobile</code></td><td>Ventana móvil compacta, APIs de eventos táctiles habilitadas, encabezados de plataforma de SO móvil y un User-Agent móvil.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
