How to Watch YouTube Over All Windows on Xiaomi: A Complete Guide to Bypassing Blocks

You try to watch YouTube videos and check your messaging at the same time, but the app keeps rolling back into the background? Picture-in-Picture (PiP) is the perfect solution, but Xiaomi and Google put restrictions on it. In this article, we’ll look at all the working ways to run YouTube over other windows on Redmi, POCO and Mi smartphones β€” from standard MIUI settings to bypassing locks through ADB and third-party apps.

The problem is that YouTube has blocked PiPs for non-premium users, and MIUI has sometimes ignored Android system settings. We tested methods with MIUI 14/15 (including HyperOS) and highlighted those that work consistently. Importantly, some solutions require developer rights or additional utilities β€” but the result is worth it.

Why YouTube is not working in picture-in-picture mode on Xiaomi

The main reason is Google’s policy: Since 2018, the PiP mode in the official YouTube app is available only:

  • πŸ”΄ YouTube Premium subscribers (from 299) β‚½/moss).
  • πŸ”΄ YouTube Music Premium (in some regions).
  • πŸ”΄ On individual videos (advertising or from program partners).

The second problem is MIUI. Even if you turn on PiP in your Android settings, Xiaomi’s shell can:

  • πŸ“± Ignore the system switch due to battery optimization.
  • πŸ“± Block background application activity (AutoStart function).
  • πŸ“± Reset settings after updates.

Fortunately, there are workarounds. Below are 5 proven methods, from simple to complex.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 12/13
POCO X5/F5
Mi 11/12/13
Another Xiaomi
Not Xiaomi.

Method 1: Enabling PiP through MIUI settings (without root)

The safest way is to use the built-in MIUI features. It is suitable for most models (Redmi Note 10/11/12, POCO X3/X4/X5, Mi 11 Lite and later) and does not require superuser rights.

Steps:

  1. Open Settings β†’ Special features β†’ Picture mode in the picture.
  2. Activate the slider Mode picture in the picture.
  3. Go back to Settings β†’ Applications β†’ Application Management.
  4. Find YouTube, open Additional β†’ Display on top of other windows and allow.
  5. Launch the video on YouTube, click Home – the video should curl up into a small window.

⚠️ If the window disappears immediately, check it out:

  • πŸ”‹ Battery settings: Settings β†’ Battery β†’ Choice of applications β†’ YouTube β†’ No restrictions.
  • πŸ”„ Autostart: Settings β†’ Annexes β†’ Application management β†’ YouTube β†’ Auto-start (enable).

β˜‘οΈ Preparation for the PiP in MIUI

Done: 0 / 4

This method works on 60-70% of Xiaomi devices, but may not work on older versions of MIUI (below 12.5) or when the Game Turbo Mode is active.

Method 2: Use YouTube Vanced (alternative client)

YouTube Vanced is a modified version of the official app with unblocked PiP, no adverts and background playback. Alas, the project is closed in 2022, but its forks (ReVanced, Vanilla Music) continue to work.

How to determine:

  1. Download APK ReVanced from the official revanced.app website (arm64 version is suitable for all Xiaomi on Snapdragon).
  2. Delete the official YouTube (or disable updates in the Play Market).
  3. Install ReVanced.apk and MicroG (to log in to your Google account).
  4. Start the video, click Home – PiP will work without Premium.

⚠️ Attention: When using ReVanced:

  • 🚫 Don’t update your app through the Play Market – it will fly.
  • πŸ”’ Google account login may require MicroG (set it separately).
  • πŸ›‘οΈ The risk of blocking an account is minimal, but Google could theoretically ban the use of unofficial customers.
What to do if ReVanced does not start?
If the app crashes when you open it, try 1. Delete the cache in Android settings. 2. Install an older version (e.g. 17.45.36). 3. Disable the VPN (if you use it). 4. Check for MicroG updates.

MethodPremium is required.It's working on MIUI 15.Risks.
Standard PiP (MIUI)❌ No.βœ… Yes.It may not work for some models.
YouTube Vanced/ReVanced❌ No.βœ… Yes.Unofficial software, possible blocking
Browser PiP (Chrome)❌ No.βœ… Yes.Limited functionality
ADB-team❌ No.βœ… Yes.Requires PC and debugging over USB

Method 3: PiP via browser (Chrome, Firefox, Kiwi)

If you do not want to install third-party applications, you can use the browser mode PiP. It works in Google Chrome, Firefox and Kiwi Browser (we recommend the latter – it supports Chrome extensions).

Instructions for Chrome/Kiwi:

  1. Open m.youtube.com in your browser.
  2. Run the video in full screen mode.
  3. Click Home and the video will be rolled up into the PiP window.
  4. (Optional) In Kiwi Browser, install the Enhancer for YouTube extension for additional features.

⚠️ Note: In the browser, the PiP can:

  • 🎡 Do not keep your viewing history.
  • πŸ”Š Turn off the sound when folding (solved in the browser settings).
  • 🚫 Not working with 4K-Video (limiting the mobile version of the site).

πŸ’‘

Kiwi Browser can enable the Desktop mode (in the browser menu) to bypass the limitations of the mobile version of YouTube.

Method 4: PiP resolution via ADB (for advanced)

If the standard methods don't work, you can force PiP to be enabled via ADB (Android Debug Bridge), which requires a computer and USB Debugging enabled, but gives 100% results.

Steps:

  1. Enable USB Debugging: Settings β†’ About Phone β†’ MIUI Version (click 7 times) Settings β†’ Additional β†’ For Developers β†’ Debugging by USB
  2. Connect your smartphone to your PC, open Command Prompt (Windows) or Terminal (Mac/Linux).
  3. Enter the command: adb shell settings put global force_pip_on_all_apps true
  4. Reboot the phone.

The PiP will then be available for YouTube and other apps, and to undo the changes, do:

adb shell settings put global force_pip_on_all_apps false

⚠️ Attention: When in use ADB:

  • πŸ–₯️ Requires a computer and installed drivers Xiaomi.
  • πŸ”§ Incorrect commands can disrupt the system.
  • πŸ”„ After resetting settings or updating MIUI You have to repeat the procedure.

πŸ’‘

ADB-It's the most reliable method, but it requires technical skills. If you're not sure, use ReVanced or browser-based.

Method 5: Third-Party Applications for PiP (Alternatives)

If nothing helps, try the specialized utilities:

  • πŸ“Ί Floating YouTube (Play Market) β€” creates a floating window on top of other apps.
  • πŸ–₯️ PiP Tool is a universal solution for PiP on any application. ADB fully functional.
  • 🌐 NewPipe (F-Droid) is an open YouTube client with PiP and background play.

⚠️ Note: Applications from third-party sources (APKMirror, F-Droid) can be used to:

  • πŸ›‘οΈ Require additional permissions (e.g. access to notifications).
  • πŸ”„ Conflict with the official YouTube.
  • 🚫 Violate Google’s Terms of Use (the risk of blocking your account is minimal, but there is a risk of blocking your account).

Frequent problems and solutions

Even after setting up the PiP, there may be failures.-5 mistakes and their solutions:

  1. The PiP window disappears immediately. βœ… Check the battery settings (No restrictions for YouTube) and auto-run.
  2. No sound in the rolled-up window. βœ… Enable Sound in the background in the application settings (for ReVanced or browser).
  3. PiP only works with some videos. βœ… Google's Restriction: Use ReVanced or NewPipe.
  4. After updating MIUI The PiP has stopped working. βœ… Repeat the setting through ADB Or reinstall ReVanced.
  5. The PiP window doesn't move βœ… V MIUI Hold the window with two fingers to drag and drop.

If the problem persists, try resetting the app settings:

  1. Go to Settings β†’ Apps β†’ YouTube β†’ Storage.
  2. Click Clear the cache and Reset the settings.
  3. Reboot the phone.
Can I turn on a PiP on Xiaomi without a developer license?
Yes, use Method 1 (MIUI settings) or Method 3 (browser). ReVanced and ADB do not require developer rights, but require third-party application installation or PC connection.
Why does PiP work in a browser but not on YouTube?
The official YouTube app blocks PiPs for non-Premium users at the server level of Google.The browser version bypasses this restriction, as it uses a web player.
Will you be banned for using ReVanced or NewPipe?
The risk is minimal, but in theory Google can block an account for using unofficial customers. To reduce the risk: Don't use the same account in the official and modified app at the same time. Don't sign in through ReVanced if you're afraid of being blocked.
How to return a standard YouTube after installing ReVanced?
Remove ReVanced via Settings β†’ Apps, then install the official YouTube from the Play Market. If errors occur, clear the cache and data of Google Play Services.
Does the PiP on Xiaomi work with HyperOS?
Yes, all of the methods described are compatible with HyperOS (the new Xiaomi shell that replaced MIUI 14). The settings may be slightly different, for example, the option Picture Mode in the picture is moved to Settings β†’ Screen.