How to prevent iPhone from muting ringtone by side switch?
Simply put, you can’t.

The best you can do is to make sure Settings → Sounds &amp; Haptics → Vibrate on Silent is switched On. You can’t otherwise override the hardware mute switch.

You joked about applying glue, but a hardware solution does exist in the form of a case. With many iPhone cases, including Apple’s own Leather and Silicone Cases, surround the hardware Mute switch. Recessed in such a way, it becomes harder to switch off by accident.

Or you can also get an WATCH…