Default volume key control LineageOS
Media volume only does exactly this but does require accessibility settings.  Supposedly it doesn't drain your battery but I'm not 100% sure.

There is other options here https://www.xda-developers.com/apps-to-master-your-volume-buttons/
I experimented with a couple apps but ultimately many of them don't for example if your screen is off.