It's 3pm. The essay is due at 9 tomorrow morning, and TikTok has already had an hour of your afternoon.
You don't want to delete it. You want it gone until 6pm, then back after dinner like nothing happened. So you look for the button that says "lock this app for three hours".
It isn't there, on iPhone or on Android. Both phones have workarounds that come close, though, and some apps do it properly. Here's each one, what it can't do and how easy it is to undo.
The short answer
- iPhone, iOS 26 and earlier: go to Settings > Screen Time > Downtime and tap Turn On Downtime Until Tomorrow, with Block at Downtime on. For an end time, give Downtime a schedule that starts now.
- iPhone, iOS 27: add a Screen Time Schedule time window that starts now and ends when you want your apps back.
- Pixel: go to Settings > Digital Wellbeing > Focus mode, pick the apps and tap Turn on now. For an end time, use Set a schedule.
- Samsung: a custom mode in Modes and Routines with Restrict app usage, turned on now or set to a time.
- For a real countdown, like 30 minutes or two hours, you need an app, such as Opal, Freedom, one sec or Forest. Ours, Unfried, does 15 minutes to an hour.
This post is about locking apps once, right now. For the same hours every day, like bedtime or work, see how to block apps at certain times.
How to Lock Apps for a Certain Amount of Time on iPhone
Apple renamed parts of Screen Time in iOS 27. Downtime is now Screen Time Schedule, and App Limits are now Time Allowances. Each option below gives both versions, and Apple's guide has the rest.
1. Lock everything until tomorrow (iOS 26 and earlier)
- Go to Settings > Screen Time and turn on App & Website Activity if it's off.
- Tap Downtime, then Turn On Downtime Until Tomorrow.
- Turn on Block at Downtime. It needs a Screen Time passcode, which is option 4 below.
With Block at Downtime on, apps you haven't allowed "can't be opened during downtime" and show up dimmed with an hourglass, Apple says. Without it, you just get a reminder. Calls, messages and your Always Allowed apps keep working.
The catch is in the name: it runs until tomorrow, so it can't do "two hours". Apple's iOS 27 guide lists no way to switch a schedule on right now, so on iOS 27, use option 2.
2. Lock apps until a set time
Make a schedule that starts now and ends when you want your apps back, then delete it.
On iOS 27: go to Settings > Screen Time > Screen Time Schedule and turn on Schedule. Tap Add Schedule, tap today's day of the week, then tap Done. Tap the time window, set the start to now and the stop time to when you want your apps back, and choose which app categories stay available, leaving out the one your problem apps are in. When it's over, tap the time window and tap Delete this Time Window, or it's back on the same day next week.
On iOS 26 and earlier: go to Settings > Screen Time > Downtime, turn on Scheduled, and set the start time to now and the end time to when you want your apps back. Keep Block at Downtime on. Afterwards, turn Scheduled off, or it runs again tomorrow.
3. Lock one app for the rest of the day
Give the app a tiny daily limit. On iOS 26 and earlier, go to Settings > Screen Time > App Limits > Add Limit, tap a category to pick single apps, tap Next and set the shortest time. On iOS 27, limits go by category: in Settings > Screen Time > Time Allowances, tap a category and drag its slider to the left.
It's a speed bump. In Apple's words, "By default, Screen Time limits can be ignored once reached."
4. Make it harder to undo with a passcode
Everything above can be switched off in a few seconds. With a Screen Time passcode, "the passcode must be entered before you can change any Screen Time settings", according to Apple.
On iOS 27, go to Settings > Screen Time > Passcode & Management > Lock Screen Time Settings. On iOS 26 and earlier, it's Settings > Screen Time > Lock Screen Time Settings.
It works best when someone else picks the code. A code you chose is a code you know, and at 11pm you'll remember it fine.
5. Lock yourself into one app with Guided Access
This one works the other way round. Guided Access keeps your iPhone on a single app, like your notes or a study app, until a timer runs out.
- Go to Settings > Accessibility > Guided Access, turn it on and set a passcode.
- Open the app you want to stay in and triple-click the side button.
- Tap Session Settings (or Options), set a Time Limit, then tap Start.
When time's up, a "Time Expired" message fills the screen. Leaving early takes a triple-click and the Guided Access passcode, or just a glance if you turned on Face ID for it, so leave that off. Apple notes that emergency calls and Crash Detection don't work during a session.
Downtime turned on, but your apps still open? Here are 8 fixes for Downtime not working.
How to Lock Apps for a Certain Amount of Time on Android
On a Pixel and most Android phones, most of these tools live in Digital Wellbeing (Digital Wellbeing & parental controls on some phones). Menu names vary a little by phone, and Samsung gets its own section below.
1. Lock apps right now with Focus mode
- Go to Settings > Digital Wellbeing > Focus mode.
- Pick the apps to pause.
- Tap Turn on now.
While it's on, "you can't use these apps and won't get notifications from them", Google says. Google's guide doesn't give it a length, so it stays on until you tap Turn off now.
The weak spot is Take a break, right on the same screen, which unpauses your apps for a time you choose.
2. Lock apps until a set time
On the Focus mode screen, tap Set a schedule. Pick today, then set the start time to now and the end time to when you want your apps back.
That's how Motorola's guide lays it out, and Google's 2019 announcement says the schedule turns Focus mode "on and off for the days and times that you choose". Delete the schedule afterwards, or it comes back.
3. Lock one app for the rest of the day
Go to Settings > Digital Wellbeing > App timers, tap Set timer next to the app and choose a short time. When it runs out, "the app closes and its icon dims", and app timers reset at midnight.
The way out is deleting the timer. To guard it, turn on PIN for app time limits under Settings > Digital Wellbeing > App limits > App limits PIN, with a PIN someone else picks.
4. Lock yourself into one app with app pinning
- Go to Settings > Security (or Security & location) > Advanced > App pinning and turn it on.
- Open the app, then swipe up and hold to open Overview.
- Tap the app's icon at the top of its card, then tap Pin.
There's no timer. The app stays pinned until you unpin it (swipe up and hold), and then your phone asks for your PIN, pattern or password (Google's steps). Great for lending your phone out, weaker for keeping yourself in, since you know your PIN.
How to Lock Apps for a Certain Amount of Time on Samsung
On a Galaxy, the lock that holds for a stretch of time lives in Modes and Routines, not in Digital Wellbeing. Menu names vary a little by One UI version.
1. Lock apps now with a custom mode
- Go to Settings > Modes and Routines. On the Modes tab, tap Add mode, then Custom.
- Give it a name (Study works), a color and an icon, then tap Done.
- Under Choose what this mode does, tap Stay focused and set up Restrict app usage.
- To start it, select the mode and tap Turn on.
Those are Samsung's steps. Restrict app usage works backwards: in How-To Geek's walkthrough, you pick the apps you still want, and every other app is blocked until the mode turns off.
Samsung's guides don't list a way to turn a mode on for a set length, so it runs until you tap it and select Turn off (Samsung's steps).
2. Lock apps until a set time
When you set up the mode, tap Turn on automatically and pick a time as the condition, starting now and ending when you want your apps back. Samsung's guide only says "conditions", but a Galaxy owner on Samsung's forum explains that a time frame in the trigger makes the mode end at a set time. Remove the condition afterwards, or it turns on again by itself.
The catch: your modes sit in Quick settings, a two-finger swipe and a tap on the Modes icon away, and a running mode stops with a tap. For one app until midnight, Samsung has app timers, though in Android Police's test the pop-up offers more time when one runs out. Here's how to set app timers on Samsung.
Apps That Lock Apps for a Set Time
If you want "lock Instagram for 90 minutes" and nothing else, a blocker app is the straight answer. These four have a real countdown. Prices were checked on each app's site or the US App Store in November 2026.
- Opal (iPhone and Android): tap the + on the My Apps tab, choose Session, set how long it runs and hold to commit. Opal's help center says every user gets unlimited sessions like this, paid or not. Without Hard Mode, you can unblock after a wait. Hard Mode, where you can't unblock or cancel, is on Opal Pro at $99.99 a year.
- Freedom (phones and computers): open the Sessions tab, tap Now, pick your blocklists and devices and a length of up to 24 hours (Freedom's steps). With Locked Mode on, you can end a session early once in 7 days. On the US App Store, it's from $8.99 a month or $39.99 a year with the first 7 days free, or $199 once.
- one sec (iPhone and Android): in the Block tab, tap +, choose how long, pick the apps and start the block. With strict mode on, "you can't pause or leave the ongoing block before the time is over", says its help center. On Android it's called Instant Block and is still in beta. It's free for one app, with pro at $19.99 a year on the US App Store, and the help center doesn't say which plan blocks need.
- Forest (iPhone and Android): pick a focus length and plant a tree. With Deep Focus on, which is free, Forest blocks your other apps for the whole session, and Forest says you can't switch it off halfway. The only way out is to give up and let the tree die. Forest notes that features vary by platform.
One thing to know on iPhone: these apps lock through Apple's Screen Time, so switching off their access in Settings can undo a block. Freedom says so plainly and suggests a Screen Time passcode. More options in the best app blockers for iPhone.
How Unfried Locks Your Apps for a Set Time
Full transparency: this is our app. We built it for anyone who puts the phone down "for an hour" and picks it back up four minutes later.
Unfried is the app blocker that talks back, and its timed lock is called a Lock. Ask your fry for 15 minutes, 30 minutes or an hour, and the apps you picked stay locked for all of it. You get one emergency stop a day, for the real emergencies.
Studying for an hour? Ask for the hour, put the phone face down and get on with it. When the Lock ends, your fry gets hearts back, so the time away from the feed counts for something.
About the fry. It's a small character with a bar of hearts and a personality you pick, like Chef, who insults you in kitchen words, or Don, who runs a small crime family. You pick the apps that eat your time and 1 to 4 hearts, and each heart is 30 minutes on those apps. The fry talks when a heart breaks. Lose the last one and it gets fried: your apps lock until you put the phone down for a while, and its streak goes back to zero. The hearts refill every midnight.
- Longer than an hour: a Lock tops out at an hour, so for "until 6pm", use a schedule. You get up to four, each with your own name, hours and days. A running schedule can't just be switched off: you get two walk-outs and two five-minute breaks a day.
- Time-out: pick 5 to 30 minutes. After that long scrolling nonstop, your apps lock until you open Unfried, give your fry an excuse and wait out a short countdown.
- Widget: your fry, its hearts and its streak on your home screen. While your apps are locked, it says when they come back, like "Back at 9:42".
It blocks whole apps, so it can't lock only Reels or Shorts. On Android it needs Usage access, plus "Display over other apps" to show its lock screen. There's no account and no in-app ads. It's $39.99 a year with the first 7 days free, or $2.99 a week.
Want a Password on an App Instead?
Some people searching "can I put a lock on Instagram" mean something else. They want Instagram to ask for a password, so nobody else can open it. Both phones can do that now.
On iPhone (iOS 18 and later), touch and hold the app on your Home Screen and tap Require Face ID (or Touch ID or Passcode). Apple says it locks again each time you quit it.
On Android 15 and up, put the app in a private space, under Settings > Security & privacy > Private space. It can have a lock of its own (Google's steps). On a Galaxy, Secure Folder does the same job, under Settings > Security and privacy > More security settings, and Samsung says adding an app puts a copy of it there.
All of these keep other people out. They don't keep you out, since your own face or PIN opens them. For that, the timers above are the better bet.
Lock Apps for a Set Time: FAQ
Can you lock apps until a certain time?
Yes, with a workaround. On iPhone, add a Screen Time Schedule time window that starts now and ends when you want your apps back (on iOS 26 and earlier, a Downtime schedule). On a Pixel, give Focus mode a schedule. On a Samsung, give a custom mode a time trigger. Delete the schedule afterwards so it doesn't repeat.
Can you lock apps for a certain amount of time on iPhone?
Not with a countdown. The built-in options are Turn On Downtime Until Tomorrow on iOS 26 and earlier, or a one-off schedule that ends at a set time. For a timed lock, like 30 minutes or an hour, use an app like Opal, Freedom, one sec or Unfried.
How do you lock apps for a certain amount of time on Samsung?
Open Modes and Routines in Settings, add a custom mode, set up Restrict app usage under Stay focused, then select the mode and tap Turn on. It runs until you turn it off. To have it end at a set time, use Turn on automatically with a time condition instead.
Is there an app that locks apps for a certain amount of time?
Yes. Opal, Freedom, one sec and Forest all let you pick a length and block apps until it runs out, and Opal's immediate sessions are free. Unfried, our app, locks your apps for 15 minutes, 30 minutes or an hour, with one emergency stop a day.
How do I lock apps while studying?
For a study block, start a timed session in an app like Forest or Opal, or turn on Focus mode on Android. To keep your phone on one app, like your notes, use Guided Access with a time limit on iPhone, or app pinning on Android.