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

# exitFullscreen()

> Exit fullscreen mode in Daily Prebuilt.

`exitFullscreen()`

✓ Prebuilt✗ Custom

> [!WARNING]
>
> Has no effect on iOS 15.1 and later due to browser limitations.

## Return value

`void`

## Example

```javascript theme={null}
document.getElementById('exit-fullscreen-btn').onclick = () => {
  call.exitFullscreen();
};

call.on('exited-fullscreen', () => {
  // Fullscreen has exited — update UI accordingly
  document.getElementById('exit-fullscreen-btn').hidden = true;
});
```

## See also

> [card] Methods
>
> * [requestFullscreen()](https://docs.daily.co/reference/daily-js/instance-methods/request-fullscreen.md)

> [card] Events
>
> * [fullscreen](https://docs.daily.co/reference/daily-js/events/iframe-ui-events.md#fullscreen)
> * [exited-fullscreen](https://docs.daily.co/reference/daily-js/events/iframe-ui-events.md#exited-fullscreen)


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