Unfortunately, iOS 10.3, 11.2 and 11.3 doesn’t allow content (like a video or canvas element) to take up the entire screen.
So, if you are running iOS on your iPhone or iPad, please check the software version, and take a look at this technical update page to see if recent updates will allow you to run your game in fullscreen.