requestFullscreenAsync

fun requestFullscreenAsync(options: FullscreenOptions = definedExternally): Promise<Void?>(source)

The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in fullscreen mode.

MDN Reference