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

# requestFullscreen()

> Expands the Daily Prebuilt iframe to fullscreen.

`requestFullscreen()`

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

Calls the browser's [`requestFullscreen()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen) on the Prebuilt iframe.

<Warning>
  Not supported on iOS 15.1 and later due to browser limitations.
</Warning>

## Return value

Returns `Promise<void>`.

## Example

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

call.on('fullscreen', () => {
  document.getElementById('fullscreen-btn').hidden = true;
});
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [exitFullscreen()](/reference/daily-js/instance-methods/exit-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>
