Listen to YouTube on Firefox in the background
Check this article to fix it:

 Fix Firefox's YouTube Background Playback Feature on Android

(I found this related news from the page shared in the question.)

I use Firefox Beta and for me it works perfectly.