> ## 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()`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="red">{"✗"} Custom</Badge>

<Warning>
  Has no effect on iOS 15.1 and later due to browser limitations.
</Warning>

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

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [requestFullscreen()](/reference/daily-js/instance-methods/request-fullscreen)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [fullscreen](/reference/daily-js/events/iframe-ui-events#fullscreen)
    * [exited-fullscreen](/reference/daily-js/events/iframe-ui-events#exited-fullscreen)
  </Card>
</CardGroup>
