: Hover your mouse over the video player and click the Miniplayer icon (a small square within a larger square) located in the bottom right corner, typically between the settings and theater mode icons.

: Click the X in the top corner of the Miniplayer to close it, or click the Expand icon to return to the full video page. How to Use on Mobile (Android & iOS)

: While a video is playing, swipe up or press the home button to exit the app. The video should shrink into a floating window on your home screen.

: If it isn't working, check your device settings under Apps > Special app access > Picture-in-picture (Android) or Settings > General > Picture in Picture (iOS) to ensure the feature is enabled. How To Turn On Miniplayer On YouTube - Step By Step

You can activate the Miniplayer while watching any compatible video on your computer: