Alternatively, alter the volume via the Control Center by swiping down from the top-right of your screen (iPhone X and later) ...
The new iOS 18.2  brings a new Volume Limit option that lets you set a limit on your iPhone for media playback.
Alternatively, on iPhones with Face ID, press and hold the Side button and any of the volume keys and slide to power off. For ...