On iPhone, listening to YouTube audio in the background usually requires paying for a YouTube Premium subscription, but there is a workaround that allows you to keep listening to a video when your ‌iPhone‌ is locked. Keep reading to learn how it's done.

General YouTube Feature 1
As YouTube has grown in popularity, Google has opted to park several features of the video hosting service behind a paywall, such as ad-free viewing, SharePlay on iOS, and the ability to listen to YouTube audio on your ‌iPhone‌ when the app is closed.

Unfortunately, YouTube Premium costs $11.99 a month to access these features. But if all you want to do is listen to YouTube-hosted audio like podcasts, music, or lectures when your ‌iPhone‌ is locked and in your pocket, there is a way to achieve this without paying for the subscription.

The following steps show you how it's done. Note that this method does not allow you to continue listening to YouTube audio in the background when using other apps on your ‌iPhone‌.

  1. Launch Safari on your ‌iPhone‌ and visit youtube.com, then search for the video whose audio you want to listen to.
  2. Next, tap the aA button in Safari's address bar, then select Request Desktop Website from the popup menu.

  3. Tap the play button to start the chosen video, while ignoring or dismissing any popups encouraging you to open the YouTube mobile app. (You will need to watch or skip a few ads before video playback begins.)
  4. Next, lock your ‌iPhone‌ with the device's Side button.
  5. The audio will pause, but you can just tap the Play button in the Lock Screen playback controls widget to resume listening.

After following the above steps, the audio from YouTube will continue to play on your locked ‌iPhone‌ for as long as the video lasts, leaving you free to pocket your device and listen on headphones.