To install NewPipe, you'll need to go to NewPipe's website and download the APK directly from there.
Now, downloading this app is not a straightforward procedure as it is not available via the Google Play Store. The second way in which you can listen to YouTube with your screen off is to install an app called NewPipe. Install NewPipe: an open-source app for background playback If playing YouTube videos off a browser doesn't appeal to you, there are few more methods to go about it. Use your browser to play YouTube videos in the background / © NextPit In such a scenario, unlock your phone and then you can control playback from swiping down the quick settings menu.
Once you have completed the steps above, tap on a video to play it, and it will continue to play even after you lock your phone.Go to the YouTube website within the browser, tap the settings (three dots) button at the top right of the page and tick desktop site.
How to play YouTube in the background on iOS.