Intel-based Mac without the T2 chip: Restart your computer and hold down Command + R until the Apple logo appears. Release the keys and allow the Mac to boot up and open into Recovery.
On iPhone, listening to YouTube audio in the background usually requires paying for a YouTube Premium subscription, but there is a simple workaround that allows you to keep listening to a video ...