BYTESLIP ← Back
Knowledge Base // Tutorial 128

How to Make a Website Full Screen on Android: Browser Settings and the Code Behind It

Difficulty: Medium ~15 min Samsung Internet · Chrome · HTML/JS

On a phone or a tablet like the Galaxy Tab A9+, the address bar, the toolbar and the status bar can take a big bite out of a web page. That hurts most on browser games. There’s no single “full screen” switch in Android browsers, but there are four ways to get there: the page’s own full-screen button, Samsung Internet’s Hide status bar setting, opening the site from a home screen icon, and, if you build the site, a few lines of code. We use the free Byteslip game Mr. Snakey as the example throughout.

Ways to make a website full screen on Android Five tiles: the page's own button, Samsung Internet's Hide status bar, a home screen icon, the Fullscreen API, and a manifest with 100dvh. PAGE'S OWN BUTTON HIDE STATUS BAR HOME SCREEN ICON FULLSCREEN API MANIFEST + 100dvh
Safety // Read First

Warnings

ImportantFull screen hides the clock, the battery level and your notifications. To get the system bars back for a moment, swipe in from the top or bottom edge of the screen. To leave full screen, use Back or the page’s exit button. If you build sites: never try to force full screen when the page loads. Browsers only allow it right after a tap or click, and it surprises visitors.

Checklist // Before You Start

What You Need

How this was tested: On Nov 19, 2026 we checked byteslip.org’s live pages and its site.webmanifest. In headless Chrome 156 with an Android tablet screen size, the full-screen button code in step 5, injected into the live Mr. Snakey page inside our test browser (nothing on the site was changed), put the page into full screen on the first tap, relabeled itself, and exited on the second tap. Chrome’s own installability check for byteslip.org reported manifest-display-not-supported, because the manifest asks for "display": "browser". Samsung Internet menu names come from Samsung’s support pages and the Galaxy Tab A9+ user guide; menus can change between app versions.

Walkthrough // Steps 01–06

Page button → browser settings → home screen icon → add it to your own site

Steps 1–4 are for anyone browsing. Steps 5–6 are for people who build websites.

  1. Step 1: Use the page’s own full-screen button first

    Video players such as YouTube have a full-screen icon, and many web games do too. That’s the most complete option: the page asks the browser to hide everything, including the status bar and the navigation buttons.

    Honest note: Byteslip’s games, including Mr. Snakey, Byteslip Invaders and The Perfect Cheeseburger, don’t have a full-screen button yet. Step 5 shows the code we’d use to add one.

  2. Step 2: Samsung Internet: hide the status bar

    Samsung Internet has a setting that removes the phone’s status bar (clock, battery, notification icons) while you browse:

    1. Open Samsung Internet and tap Tools (the menu button in the bottom toolbar).
    2. Tap Settings, then Layout and menus.
    3. Turn on Hide status bar.

    The address bar and toolbar usually slide out of the way as you scroll down a page and come back when you scroll up. We couldn’t find an official Samsung page for a separate “full screen” or “immersive” switch in current versions, so we don’t list one. If a text box ends up hidden behind the keyboard with this setting on, turn Hide status bar off again.

  3. Step 3: Chrome: let the toolbar hide, or let the page ask

    Chrome for Android doesn’t have a setting like Samsung’s. The address bar usually slides away as you scroll down and returns when you scroll up. For true full screen in Chrome you need one of these:

    • The page’s own full-screen button (step 1).
    • An installed web app whose manifest asks for fullscreen or standalone (step 4).
  4. Step 4: Open the site from a home screen icon

    Some sites can be installed as web apps. When an installed app’s manifest asks for standalone, it opens without the address bar; fullscreen hides the status bar too. The full steps for Samsung Internet and Chrome are in our sibling guide, Add a Website to the Home Screen on Samsung Android.

    byteslip.org is the counter-example: its manifest currently says "display": "browser", so a byteslip.org icon is a shortcut that opens in a normal browser tab with the bars showing.

  5. Step 5: Developers: add a full-screen button

    This is how we’d add a button to a game page like Mr. Snakey. It isn’t on the live game yet. It puts the whole page (document.documentElement) into full screen, so the on-screen D-pad and score come along. Paste it before </body>:

    <button id="fsBtn" type="button" hidden>Full screen</button>
    <script>
    (() => {
      const btn = document.getElementById('fsBtn');
      const root = document.documentElement;
      const req = root.requestFullscreen || root.webkitRequestFullscreen;
      const exit = document.exitFullscreen || document.webkitExitFullscreen;
      const current = () => document.fullscreenElement || document.webkitFullscreenElement;
      if (!req) return;              // no Fullscreen API (iPhone Safari): keep the button hidden
      btn.hidden = false;
      btn.addEventListener('click', () => {
        if (current()) { exit.call(document); return; }
        const p = req.call(root, { navigationUI: 'hide' });
        if (p && p.catch) p.catch(err => console.warn('Full screen refused:', err.name));
      });
      const sync = () => { btn.textContent = current() ? 'Exit full screen' : 'Full screen'; };
      document.addEventListener('fullscreenchange', sync);
      document.addEventListener('webkitfullscreenchange', sync);
    })();
    </script>
    • It only works from a tap or click. MDN lists transient user activation as a requirement, so calling it on page load fails.
    • navigationUI: 'hide' asks the browser to give the page the whole screen. The browser may ignore it.
    • The webkit names cover older WebKit-based browsers. iPhone Safari has no element full screen at all (MDN: iPad only), so the button stays hidden there.
    • In an <iframe>, the frame needs allow="fullscreen".
  6. Step 6: Developers: manifest display, theme-color and 100dvh

    For people who open the game from a home screen icon, a manifest can ask for no browser bars at all. This example is for a game-only manifest at /games/mrsnakey/mrsnakey.webmanifest. It doesn’t exist yet; today Mr. Snakey links the sitewide /site.webmanifest.

    {
      "name": "Mr. Snakey by Byteslip",
      "short_name": "Mr. Snakey",
      "id": "/games/mrsnakey/",
      "start_url": "/games/mrsnakey/",
      "scope": "/games/mrsnakey/",
      "display": "fullscreen",
      "background_color": "#070b18",
      "theme_color": "#070b18",
      "icons": [
        { "src": "/favicon-192.png", "sizes": "192x192", "type": "image/png" },
        { "src": "/img/brand/icon-512.png", "sizes": "512x512", "type": "image/png" }
      ]
    }

    Link it in the game’s <head>. Mr. Snakey already uses this theme color, which tints the browser bars when they show:

    <link rel="manifest" href="/games/mrsnakey/mrsnakey.webmanifest">
    <meta name="theme-color" content="#070b18">

    If a browser doesn’t support fullscreen, MDN says it falls back to standalone, then minimal-ui, then browser. Manifest full screen is separate from the Fullscreen API, so keep the button for people playing in a tab.

    Finally, size the game with dvh. 100vh is measured as if the browser bars were hidden, so the bottom of the game can sit under the toolbar. 100dvh follows the bars as they slide in and out:

    .game-shell {
      min-height: 100vh;    /* older browsers */
      min-height: 100dvh;   /* follows the browser bars as they slide in and out */
    }
    /* Opened from a home screen icon with no browser bars: hide the button */
    @media (display-mode: fullscreen), (display-mode: standalone) {
      #fsBtn { display: none; }
    }
Pro Tip

Pair full screen with a screen that stays on

Questions // FAQ

FAQ

Why do the bars come back when I swipe from the edge?

That’s Android’s design for full-screen apps: an edge swipe shows the system bars for a moment so you can always reach Back, Home and your notifications. Android’s developer docs describe this as showing the bars temporarily.

Does Samsung Internet’s Hide status bar work in other apps?

No. It only applies inside Samsung Internet.

Why did my full-screen button do nothing?

The usual causes: it ran without a tap (on page load or in a timer), the page is in an iframe without allow="fullscreen", or the browser doesn’t support the API. Check the browser console for the error name.

Is manifest fullscreen the same as requestFullscreen()?

No. MDN notes they’re separate: an app opened in fullscreen display mode can still report document.fullscreenElement as null.

Keep Reading
Sources // Verified

Official docs

Samsung Internet’s Hide status bar: Samsung: Hide status bar in Samsung Internet. Edge swipe and temporary system bars: Android Developers: Hide system bars for immersive mode. Fullscreen API, transient activation, navigationUI and iframes: MDN: Element.requestFullscreen(). Display modes, fallback order and the Fullscreen API note: MDN: manifest display. dvh units: MDN: viewport units (dvh). Install criteria: web.dev: What does it take to be installable?. iPhone vs iPad support: MDN browser compatibility data for requestFullscreen.

← All Tutorials Byteslip Apps

See more free browser games with leaderboards.