For individual apps, you can set a timer that limits the amount of time you spend on the app every day.
To set an app timer:
Go to Settings > Digital Wellbeing & parental controls.
Or Settings > Apps > Screen time.

When you reach your time limit in an app:
The app timer resets at midnight. To use the app before midnight, go back to the timer in Settings and extend the time or delete the timer.