To listen to YouTube on lock screen, simply open the YouTube desktop version and play the video. Go to home screen and play the video from the notification shade and lock your Android screen. The audio will keep playing on the lock screen.