There are no such direct options through which you’re free to play it in the background.
Just read it up !
Therefore go through the post to know how to play YouTube videos in the backgroundwithout rootingyour Android equipment.

The videos wont pause or stop even if you turn off the screen of your gear!
This app allows to play the videos even under the screen off.
The functionality will be activated and therefore the videos can be played even in screen off.

The app is not available on the Google Play Store.
However, you could get the app from F-Droid which is one of the best app stores.
Step 1.First of all, visit thislinkand then download the F-Droid app on your Android machine.

Step 2.Now visit theSettings > Securityand then enable theUnknown Sources.
Now move to the folder where you have saved F-Droid and install it normally.
Step 3.Now on the F-droid, search for NewPipe and install it on your Android smartphone.

you’re able to also get NewPipe fromhere.
Step 4.Now initiate the NewPipe Android app and then utilize the search bar to search for your desired song.
Step 5.You just need to choose 3 dots and then select theSwitch to background.

This option will continue to play the video even when the screen is off.
Thats it, you are done!
How to Hide Apps in Realme Phones
Google Chrome Not Saving Password?

8 Ways to Fix it
How To Fix Mobile Hotspot Connected but No Internet on Android



