> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Website overrides overview

> Customize how your website looks and behaves in your app with a custom user agent, custom headers, custom CSS and JavaScript, and cookie persistence.

Web Overrides let you control how your website is presented inside your app and how the app sends requests to your web server. With these options and the [Median JavaScript Bridge](https://docs.median.co/docs/javascript-bridge.md), you can build an app experience on top of your existing web platform.

## Related documentation

> [card] [Custom user agent](https://docs.median.co/docs/custom-user-agent.md)
>
> Use a custom user agent to identify app traffic and differentiate it from
> web users. Useful when third-party services require a native app user agent.

> [card] [Custom headers](https://docs.median.co/docs/custom-headers.md)
>
> Add custom HTTP headers to requests from your app to your web server. Pass
> device-specific or session-related data for smarter server-side logic.

> [card] [Custom CSS](https://docs.median.co/docs/custom-css.md)
>
> Apply custom CSS to change how your site looks in the app. Useful for hiding
> desktop-only elements like banners, footers, or navigation bars.

> [card] [Custom JavaScript](https://docs.median.co/docs/custom-js.md)
>
> Run extra logic when pages load in the app, change behavior, or hook into
> events.

> [card] [Cookie persistence](https://docs.median.co/docs/cookie-persistence.md)
>
> Override cookie expiration from your web platform so session or preference
> data is kept across app sessions.

## Customize web requests

Use a **custom user agent** to identify app traffic and work with services that expect a native app user agent. Add **custom HTTP headers** to send device or session information to your server and support smarter server-side behavior.

## Overriding web content

> [!WARNING]
>
> **Maintainability of mobile app overrides**
>
> CSS or JavaScript injected via Web Overrides is applied globally to your whole web app inside the mobile app. That can make maintenance harder, since you need to republish the app to change override logic. For long-term maintainability, prefer implementing changes on the server and detecting in-app usage. See [Detecting app usage](https://docs.median.co/docs/detecting-app-usage.md) for details.

**Custom CSS** lets you adjust layout and visibility in the app (for example, hiding desktop-only UI). **Custom JavaScript** lets you run extra logic on load, change behavior, or hook into events.

## Cookie persistence

Override cookie expiration settings from your web platform so session or preference data persists across app sessions.

## Summary

Web Overrides and the Median JavaScript Bridge are the main tools for shaping how your website is shown in the app and how requests are sent. If you use a JavaScript framework such as React or Vue.js, install the [`median-js-bridge` npm package](https://docs.median.co/docs/npm-package) to simplify web-to-app integration.


## Related topics

- [Website builder overview](https://docs.median.co/docs/ai-app-builder-overview.md)
- [Salesforce overview](https://docs.median.co/docs/salesforce.md)
- [Social login overview](https://docs.median.co/docs/social-login.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.