Is there a way to keep an iphone X alarm from silencing when the phone is picked or moved? I was late to work I believe do to this feature?

Is there a way to keep an iphone X alarm from silencing when the phone is picked or moved? I was late to work I believe do to this feature?

Stop making excuses:

"Do Not Disturb and the Ring/Silent switch don't affect the alarm sound. If you set your Ring/Silent switch to Silent or turn on Do Not Disturb, the alarm sound still goes off.

If you have an alarm that doesn't go off, is too quiet, or if your iPhone only vibrates, check the following:

Check the ringer volume on your iPhone. Alarms match the volume you set for your ringer. If your alarm volume is too low or too loud, press the volume button up or down to adjust it. You can also go to Settings > Sounds to adjust the volume.
If your alarm only vibrates, make sure that your alarm sound isn't set to None. Open the Clock app, tap Alarm, then tap Edit. Tap the alarm, then tap Sound and choose a Sound.
If you connect wired headphones, Bluetooth headphones, or speakers to your iPhone, alarm sound will play through the connected device. If you don't hear the alarm sound while connected to these devices, disconnect from those devices and use the built-in speakers on your iPhone."