> 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/tipo-de-dispositivo.md).

# Tipo de dispositivo

Em vez de definir manualmente viewports, suporte a toque e cabeçalhos User-Agent na configuração local da sua biblioteca (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@ubc.oxylabs.io?p_device=mobile
```

### Perfis de dispositivo suportados

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

<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 de plataforma desktop, esquemas padrão de entrada de mouse/teclado e uma string User-Agent de desktop.</td></tr><tr><td><code>mobile</code></td><td>Viewport móvel compacto, APIs de eventos de toque habilitadas, cabeçalhos de plataforma do SO móvel e um User-Agent móvel.</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/tipo-de-dispositivo.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.
