element.requestFullscreen() method opens an element in fullscreen mode.
Note: It's not guaranteed that the element will be put into full screen mode. You can determine whether or not your attempt to switch to full-screen mode is successful by using the Promise returned by requestFullscreen().
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.