YouTube background playback is no longer possible on many browsers, but not all of them. Here's one workaround on Android.
YouTube's background play feature has stopped working on Samsung Internet, Microsoft Edge, Brave, and other browsers.