How to play music in background

Hey

I used to be able to play videos on YouTube in the background and on different apps while still listening

For some reason on my IPhone 11 it doesn’t seem to have that option. Can someone help?

This option is not available for iOS, AFAIK. Only on Android.