> ## 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.

# Webview zoom

> Set the initial webview zoom level in App Studio, and get or set the zoom level at runtime with the Median JavaScript Bridge.

You can set the initial zoom level in App Studio during configuration, or control it dynamically using the Median JavaScript Bridge for runtime adjustments.

> [!TIP]
>
> **Test  with our demo page**
>
> We host a ready-made demo page at
>
> that calls the  features through the Median JavaScript Bridge.
> Load it inside your Median app during development, either by setting it
> as your app's website URL in App Studio or by navigating to it from your
> own site, and use it to confirm  works on a real device before
> you add it to your own pages.
>
> The demo page only works inside a Median app with  enabled.
> Opened in a regular mobile or desktop browser, the native features
> won't respond. Remember to switch your app back to your own URL before
> release.

## Implementation guide

You can control the webview zoom through initial configuration and through runtime JavaScript methods, for both static zoom settings and dynamic adjustments based on user interactions or content.

### App configuration

To use the WebView zoom feature, set **Viewport Width** to **WebView Scale** in the **Interface** settings of your app.

![Viewport Width set to WebView Scale in App Studio](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/c99bda4d3346eb4646b40a061b2ee9056c7a09bccaeb0f8b1feb4fb70940f0b1-Screenshot_2026-02-10_at_10.20.07.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=bd0ccbe289e3e7b55e40a3372ba6e2cd)

App Studio – Interface – Viewport Width

### JavaScript implementation

#### Get current zoom level

To retrieve the current zoom level of the webview:

Median JavaScript Bridge

```javascript JavaScript theme={null}
median.webview.getZoom();
```

#### Set zoom level

To set a new zoom level at runtime:

Median JavaScript Bridge

```javascript JavaScript theme={null}
median.webview.setZoom(1.1); // Sets zoom to 110%
```


## Related topics

- [Changelog](https://docs.median.co/docs/changelog.md)
- [Zoom](https://docs.median.co/docs/zoom.md)
- [Clear WebView cache](https://docs.median.co/docs/clear-webview-cache.md)


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