Shortcuts can do things for you automatically.
1. Open the Shortcuts app (search for it if hidden), then the Automation tab.
2. Tap New Automation (or +) and choose a trigger, for example Battery Level, Time of Day, or Wi-Fi.
3. Add an action. Popular examples:
When battery falls below 20%: turn on Low Power Mode.
At 22:00: turn on Do Not Disturb.
When connected to home Wi-Fi: turn off mobile data.
4. Choose "Run Immediately" so it doesn't ask each time.
The Gallery tab has ready-made shortcuts you can add with one tap.