Firefox for Android does background playback too, and even provides media controls (exposing play/pause etc through the standard system API). Some sites may need the Video Background Play Fix [0] add-on.
For popping out YouTube videos I use NewPipe, a FOSS Android YouTube client [1].