How do you play a browser game fullscreen on a phone?

Updated on

On an Android phone, touch the game: Chrome lets a page go fullscreen once you have touched it, and a game built for it does so at your first touch. On an iPhone, Safari does not let a page go fullscreen, so add the game to your Home Screen with Open as Web App switched on, and open it from there. Boomer Brawl does the first part by itself: on a phone or a tablet the first touch on a phone or tablet takes the game fullscreen and turns it sideways where the browser allows.

A page needs your touch first

A web page cannot open fullscreen on its own when you arrive. The web.dev guide to making fullscreen experiences explains that a user gesture is required before a browser will enter fullscreen, since opening fullscreen on every page load would annoy everyone.

A game therefore waits for your first touch on the screen or click of the mouse. Once that first gesture happens, the game asks the browser to enter fullscreen.

The browser decides whether to grant the request. MDN Web Docs notes in its guide to the requestFullscreen method that the browser can refuse the request, in which case the page simply stays as it was.

Chrome on an Android phone

Chrome on an Android phone lets a game fill the whole display. The browser compatibility table on MDN Web Docs shows that Chrome on Android supports fullscreen for a web page.

In a game built for this, your first touch takes the game fullscreen. In the game it also turns the screen sideways where the browser allows it, which Chrome on Android does.

Entering fullscreen hides the browser's address bar and navigation controls, so the game has the whole screen to itself. A game that does not ask for fullscreen stays in the ordinary page view, with Chrome's bars visible round the frame.

Safari on an iPhone: the Home Screen

Safari on an iPhone does not let an ordinary web page enter fullscreen mode. The browser compatibility table on MDN Web Docs shows that Safari offers fullscreen for a page only on an iPad, not on an iPhone.

Apple Support explains the way round this restriction in its guide to turning a website into an app in Safari on iPhone. In Safari, open the game's page, tap the Share button, scroll down the list of options, and tap Add to Home Screen. If the option is missing, Edit Actions at the bottom of the list adds it. Ensure Open as Web App is switched on, and tap Add.

Apple Support says the icon placed on the Home Screen opens the website just like an app. The WebKit blog on WebKit features in Safari explains that every website added to the Home Screen now opens as a web app by default, and you can switch Open as Web App off if you prefer to keep a plain bookmark instead.

On an iPad

Safari on an iPad handles fullscreen differently from an iPhone. The table on MDN Web Docs shows that Safari on an iPad does offer fullscreen for a page, showing an overlay button that cannot be hidden, and a swipe down leaves fullscreen mode.

Because of this support, a game can go fullscreen at your first touch on an iPad just as it does on other large screens. Adding the page to the Home Screen works there too if you prefer to launch it from an icon.

Fullscreen and holding the phone sideways

Turning the screen sideways often depends on whether the browser is already in fullscreen. MDN Web Docs explains in its reference for the screen orientation lock method that a page can usually lock the screen sideways only while it is in fullscreen mode.

The MDN table shows that Safari on an iPhone cannot lock the screen orientation at all. On an iPhone you must hold the phone sideways yourself. If the screen will not turn when you rotate the handset, the phone's own rotation lock setting is usually turned on.

When a game runs at full size, performance depends on the phone's hardware. The guide on why a browser game lags on a phone explains what to check when fullscreen play feels slow or choppy.

How Boomer Brawl does it

Boomer Brawl is a free top-down arena brawler in the browser, made to fill a phone held sideways. On a phone or a tablet the first touch on a phone or tablet takes the game fullscreen and turns it sideways where the browser allows. The game asks only once: if you choose to leave fullscreen, the game does not ask again.

Your first touch counts wherever it lands on the screen. It can land on the game itself, on the loading screen, or on the picture asking you to turn the phone sideways. A mouse click never takes the game fullscreen on a handheld device.

A laptop with a touchscreen counts as a handheld device under these rules and goes fullscreen at your first touch. On a computer without a touchscreen, a round fullscreen button sits at the top right of the screen where the window leaves room for it. The button fades away after a moment and returns when the mouse moves. A window already close to the game's shape leaves no room for the button, and the browser's own fullscreen mode works there instead.

The guide on how to play explains every control for touch, and the guide on what a top-down game is explains the arena view. Boomer Brawl goes fullscreen at your first touch on a phone: play a round.

Common questions

Can an iPhone play a browser game fullscreen?

No, not in Safari itself: Safari on an iPhone has no fullscreen for pages, so add the game to the Home Screen as a web app.

Does Chrome on Android play browser games fullscreen?

Yes: Chrome on Android lets a game go fullscreen once you touch it, if the game asks.

Why does a browser game not go fullscreen when it opens?

Browsers allow fullscreen only after you touch or click the page, so a game waits for your first touch.

Does a laptop with a touchscreen go fullscreen too?

Yes: it counts as a phone or a tablet and goes fullscreen at its first touch, never at a mouse click.

Does the game go fullscreen again after you leave it?

No: it asks once, at the first touch, and a player who leaves fullscreen stays out of it.

Sources

Keep reading