How to Enable Dark Mode by Tapping the Back of Your iPhone
If you have an iPhone 8 or later and the latest release of iOS, you can use a feature called Back Tap to switch between dark mode and light mode on your device with just two or three taps. Here’s how to set it up using Shortcuts.
Source: howtogeek.com