You can lock apps on an iPhone with a passcode-protected time limit in Screen Time. Here's how to do it.
Results that may be inaccessible to you are currently showing.
Hide inaccessible resultsResults that may be inaccessible to you are currently showing.
Hide inaccessible results