It can be a bit buggy at times, but when it comes to just playing music with the screen locked, it’s perfect.
https://addons.mozilla.org/en-US/firefox/addon/video-background-play-fix/
Edit: I forgot to also mention that ad blocker extensions make sailing the seas on mobile much more manageable. Extentions, in general, have been a really nice addition.
I play the video in Firefox then lock the screen, which stops the playback but then FF is in the media bar so I can press play to continue playback.