Hi,
It is not possible to turn off the sound completelly on my iPhone X when playing a video, spotify, a game etc...
If I turn off the volyme it still sounds but you almost have to put the phone against the ear to hear it.
This really annoys me.
You can test and
1. Turn off the volyme
2. Play something
3. Place phone against your ear and check if you hear whats playing.