I use the Background Sounds feature on the iPhone, set to Dark Noise, in public transit if there are loud people nearby that my music isn't drowning out. Recommend trying it out. There's a Control Centre shortcut for it too (with an ear icon).
I can hear them better anyway and I have some degree of hearing damage so I prefer them in for protection in those cases.