You open Twitter for a quick scroll before bed. Thirty minutes later, you're deep in a thread about something that happened six years ago, your heart rate is up, and your brain is fully awake. Sound familiar?

Twitter — now rebranded as X — is one of the most sleep-disruptive apps on your phone. It's designed to keep you engaged indefinitely. The feed never ends, the notifications keep coming, and every time you pull to refresh, there's something new to react to. That cycle of stimulation is exactly the wrong thing for your brain when you're trying to wind down and fall asleep.

The good news: your iPhone has tools to block Twitter at night. The bad news: most people set them up in a way that's easy to bypass. This guide walks you through how to actually do it — so the block holds when you're tired and tempted.

Why Twitter Is Especially Bad Before Bed

Most social apps are distracting. Twitter is distracting in a specific way that makes it worse for sleep than something like looking at photos.

Twitter is built around reactive content — controversy, breaking news, hot takes, and arguments. Each post is designed to trigger a response. Even if you're just reading, your nervous system is quietly activating stress responses. Your cortisol ticks up. Your mind starts forming opinions, counterarguments, emotional reactions.

That kind of cognitive and emotional activation makes it significantly harder to fall asleep. Your brain needs to slow down before sleep, not ramp up. A 15-minute Twitter session at 11pm can delay sleep onset by 30 to 45 minutes — not because of the blue light, but because of what the content does to your mental state.

Add in the variable reward loop — you never know if the next scroll will show something interesting or infuriating — and you've got a near-perfect machine for keeping you awake.

The Problem With Willpower Alone

Most people's plan for cutting off Twitter at night is something like: "I'll just stop at 10pm." And most nights, that doesn't work.

It's not a character flaw. Willpower is a depleted resource by the end of the day. You've been making decisions and managing yourself for hours. When you're lying in bed tired and a little bored, the friction-free path is to reach for your phone. Without a structural barrier, you'll almost always take it.

The solution isn't more discipline — it's removing the option. When Twitter is blocked on your phone, you can't open it even if you want to. That removes the decision entirely, which is exactly what you need at 11pm when your judgment is already impaired by fatigue.

This is exactly the problem Sleep Lock solves. Download on the App Store

How to Block Twitter on iPhone at Night

There are a few different ways to set this up on iOS. Here's a breakdown of each approach, what it does well, and where it falls short.

Option 1: Use Screen Time App Limits

Apple's built-in Screen Time feature lets you set daily time limits for specific apps. Here's how to configure it for Twitter:

  1. Open Settings and tap Screen Time
  2. Tap App Limits, then Add Limit
  3. Search for Twitter (or X) and select it
  4. Set a daily time limit — for example, 30 minutes
  5. Tap Add to confirm

When you hit your limit, the app icon will gray out and show a time limit screen. This works reasonably well during the day. At night, though, there's a significant problem: you can tap "Ignore Limit" and get more time with a single tap. If you know the Screen Time passcode — or if you never set one — it's trivially easy to bypass.

App Limits also reset at midnight, so if you haven't used Twitter yet that day, the limit won't stop you from opening it at 11pm.

Option 2: Use Screen Time Downtime

Downtime is a scheduled window during which all apps (or specific ones) are blocked. This is closer to what you actually want for a nighttime block.

  1. Go to Settings → Screen Time → Downtime
  2. Toggle it on and set your start and end times (for example, 10pm to 7am)
  3. Make sure you've set a Screen Time passcode so you can't easily override it

During Downtime, Twitter will be blocked along with any other apps you haven't marked as "Always Allowed." This is a stronger setup than App Limits, but it still has a bypass issue: even with a passcode set, iOS shows an "Ask For More Time" or "Ignore Limit" prompt that many users find they can get past.

If you want Downtime to actually hold, the setup details matter a lot. There's a full breakdown of how to configure it so it's harder to bypass in this guide: How to Set Up Downtime on iPhone So It Actually Works (No Easy Bypass).

Option 3: Use Focus Mode

iPhone's Focus modes let you restrict notifications and app access during set times. You can create a Sleep focus that limits which apps are available at night.

However, Focus mode has a significant limitation that most people don't realize until it's too late: it doesn't actually block apps from opening. It hides notifications and can remove apps from your home screen, but if you know the app is there and navigate to it, it will open.

This catches a lot of people off guard. If you've been relying on Focus mode and wondering why you still end up on Twitter at midnight, that's why. For more detail on this gap, see: iPhone Focus Mode at Bedtime Still Allows Apps — Here's Why (and How to Actually Block Them).

Option 4: Use Sleep Lock for a Harder Block

Sleep Lock is an iOS app that uses Apple's Screen Time APIs to block specific apps on a set schedule — and makes them significantly harder to override during your sleep window. You schedule your block (say, 10pm to 7am), select Twitter as one of the blocked apps, and set a passcode. When the window starts, Twitter is blocked. You can't tap around a prompt to get back in.

It's local-first, requires no account, and doesn't track anything. The point is just to create a reliable structural barrier between you and the apps that are keeping you awake. For people who've tried Screen Time and keep bypassing it, this is usually the step that actually changes behavior.

What to Do Instead of Scrolling Twitter at Night

Blocking Twitter is necessary, but it works better if you have something to replace the habit with. The urge to reach for your phone at night is real — usually it's boredom, anxiety, or just the ingrained loop of the routine.

A few things that actually help:

  • Put your phone across the room. Physical distance reduces the impulse significantly. If you use your phone as an alarm, get a cheap alarm clock.
  • Keep a book on your nightstand. Not an e-reader. A physical book. The barrier to opening it is low, and it doesn't have a notification that pulls you somewhere else.
  • Try a wind-down routine that starts 30 minutes before bed. A consistent pre-sleep sequence signals to your brain that sleep is coming, which makes it easier to actually feel sleepy.
  • If you wake up in the middle of the night and the urge to check Twitter hits, that's a specific scenario worth planning for. There's a practical guide on handling it here: How to Stop Looking at Your Phone in the Middle of the Night (And Actually Fall Back Asleep).

If Twitter Isn't the Only App Keeping You Up

For many people, Twitter is the main culprit — but not the only one. If you find yourself jumping from Twitter to Reddit to news apps in a single bedtime session, you probably need to block multiple apps, not just one.

News apps in particular follow the same stimulation pattern as Twitter: reactive content, variable reward, emotional activation. If you've blocked Twitter but your news app is still accessible, you may just shift the habit over. The fix is to block both during your sleep window. More on that here: How to Block News Apps on iPhone at Night (Stop Doomscrolling Before Bed).

The Takeaway

Blocking Twitter at night isn't about hating the app or swearing off social media. It's about recognizing that your phone's default state — always accessible, always stimulating — is not compatible with good sleep. You're not going to out-discipline an algorithm that has billions of dollars of engineering behind it.

The move is structural: set up a hard block during your sleep window, make it as difficult as possible to override when you're tired, and replace the scrolling habit with something your brain can actually wind down with. Start tonight. Set a Downtime schedule, or download an app that makes the block harder to bypass. Your future self — the one who woke up rested — will thank you.