HOW TO DISABLE THE VOLUME BUTTONS ON MY iPHONE?
If you put your iPhone in any sort of cradle or clamp, for example when using it to fly a drone, its volume buttons may be pressed unintentionally. To fix this, open Settings and tap Sounds & Haptics > Ringer and Alerts. Then disable Change with Buttons, and control the volume there using the slider instead.