Press the Side button once
Press the Sleep/Wake button once if your iPhone has one
Press the Top button once on older models
Set Auto-Lock in Settings > Display & Brightness > Auto-Lock
Use AssistiveTouch and tap Lock Screen
Use Back Tap if you have it set to Lock Screen
