> 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/pt-br/headless-browser/device-type.md).

# Tipo de dispositivo

Aprenda como definir tipos de dispositivo para uma coleta de dados mais precisa de layouts responsivos e conteúdo específico por dispositivo.

Em vez de definir manualmente viewports, suporte a toque e cabeçalhos de User-Agent na configuração da sua biblioteca local (o que pode criar incompatibilidades de fingerprint e acionar timeouts de conexão), o Headless Browser permite emular classes específicas de dispositivos nativamente adicionando o `p_device` parâmetro de consulta à sua string de conexão:

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

### Perfis de dispositivo compatíveis

Você pode configurar o `p_device` parâmetro usando três perfis de dispositivo compatíveis:

<table><thead><tr><th width="123">Valor do parâmetro</th><th width="620">Descrição</th></tr></thead><tbody><tr><td><code>desktop</code><br><em>(padrão)</em></td><td>Viewport em tamanho completo, cabeçalhos da plataforma desktop, esquemas padrão de entrada por mouse/teclado e uma string de User-Agent de desktop.</td></tr><tr><td><code>mobile</code></td><td>Viewport mobile compacto, APIs de eventos de toque ativadas, cabeçalhos da plataforma do sistema operacional mobile e um User-Agent mobile.</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/pt-br/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.
