Device support
On this page
Each snippet can be limited to a device type. The device is worked out on the server from the browser’s user agent.
| Option | Applies to |
|---|---|
| All devices | Every visitor |
| Desktop only | Desktop visitors |
| Mobile and tablet | Mobile and tablet visitors |
Notes
- A snippet targeted at Mobile and tablet still reaches tablet visitors, to keep behavior consistent across updates.
- If the site is served from a page cache, the cache must keep a separate copy for desktop and mobile — one page for both cannot be told apart.
Device support also affects caching: when Cache mode is on (Pro), each device keeps its own cached copy.
Related
- Snippets — snippet overview.
- Cache mode — Pro per-device caching.