How to Watch YouTube on Apple TV With an iPhone

To watch YouTube on your Apple TV from your iPhone, connect both to the same Wi-Fi network, open the YouTube app on each, play a video on your iPhone, tap the Cast button in the player, and choose your Apple TV. The video plays on the TV, and your iPhone becomes the remote.

These steps cover the YouTube app on an iPhone running iOS 27 and an Apple TV 4K or Apple TV HD with the YouTube app installed. Apple’s current Apple TV guide is written for tvOS 27, and the casting steps are the same on older tvOS versions. They follow YouTube Help’s casting instructions and Apple’s AirPlay guide.

Which Method Should You Use?

There are three ways to get YouTube from your iPhone onto an Apple TV. Pick the one that fits your situation.

Method Best for Needs the YouTube app on Apple TV? Same Wi-Fi required?
Cast from the YouTube app Everyday watching with your phone as the remote Yes Yes
Link with TV code Phone and Apple TV on different networks, such as guest Wi-Fi Yes No
AirPlay or Screen Mirroring Showing exactly what is on your iPhone, or apps that can’t cast No Yes

Casting is usually the best choice. Your iPhone tells the YouTube app on the Apple TV what to play, and the TV handles the video, so your phone stays free for other things. Screen Mirroring copies your whole screen, so notifications and anything else you open also show up on the TV.

Install YouTube on Both Devices

  • The YouTube app on both devices. On the Apple TV, open the App Store, search for YouTube, and select Get. On the iPhone, install YouTube from the App Store. YouTube says you can’t cast from youtube.com in a mobile browser, so Safari won’t work for this.
  • The same Wi-Fi network. Check the network name on your iPhone in Settings > Wi-Fi, and on the Apple TV in Settings > Network.
  • Local Network permission for YouTube. Casting fails without it on iOS 14 or later. You’ll be asked the first time you tap Cast; if you tapped Don’t Allow, the troubleshooting section shows how to turn it back on.

How to Cast YouTube From iPhone to Apple TV

  1. Connect your iPhone and Apple TV to the same Wi-Fi network.
  2. Turn on the TV and open the YouTube app on your Apple TV. The YouTube home screen appears.
  3. Open the YouTube app on your iPhone and start the video you want to watch.
  4. Tap the Cast button in the video player. It looks like a small screen with Wi-Fi waves in the corner. A list of nearby devices opens.
  5. If YouTube asks to find devices on your local network, tap Allow.
YouTube iPhone Cast picker with a Living Room TV highlighted and the earlier Link with TV code option below it
Choose your TV by name if it appears in the list. Google’s current instructions call the code-linking option Add a device; earlier versions show Link with TV code, as pictured. (Recreated interface)
  1. Tap your Apple TV in the list. After a few seconds, the video starts playing on the TV.

While you’re casting, YouTube turns your iPhone into a companion remote, so you can pause, skip, and pick the next video from your phone.

Stop Casting or Switch Devices

  • To stop casting: tap Cast, then tap This device. Playback returns to your iPhone.
  • To move the video to another TV: tap Cast and pick the other device.

If the Apple TV remote is easier to reach, you can also pause or exit the YouTube app on the TV directly.

If you’d rather search on the TV itself, you can pair a Bluetooth keyboard with your Apple TV to type faster.

How to Link Your iPhone With a TV Code

A TV code pairs your iPhone with the YouTube app on the Apple TV even when the two aren’t on the same Wi-Fi network. This helps in hotels, dorms, or homes with separate guest networks.

  1. On your Apple TV, open the YouTube app and go to Settings (the gear icon).
  2. Scroll to Link with TV code. A blue code made only of numbers appears on the TV.
  3. On your iPhone, open the YouTube app and tap Cast.
  4. Tap Link with TV code.
  5. Type the code from the TV and tap Link. Your Apple TV now appears in the Cast list, and you can send videos to it.
Steps to link YouTube on iPhone to Apple TV with a TV code: open Settings, Add a device on Apple TV, note the code, tap Cast and Add a device on iPhone, and enter the code
A TV code links your phone to the Apple TV without sharing Wi-Fi.

Disconnect, Reconnect, or Unlink

  • Disconnect for now: tap Cast, then This device.
  • Reconnect later: open YouTube on the Apple TV. On your iPhone, tap your profile picture, then Settings > General > Watch on TV, find the Apple TV, and tap Link.
  • Remove all linked devices: on the Apple TV, open YouTube Settings > Linked devices > Unlink all devices. On the iPhone, go to profile picture > Settings > General > Watch on TV > Delete devices. YouTube doesn’t let you unlink one device at a time, so you’ll need a new code for any TV you want to use again.

How to Use AirPlay Instead

AirPlay is Apple’s built-in way to send video from an iPhone to an Apple TV. It doesn’t need the YouTube app on the TV. These steps follow Apple Support:

  1. Connect your iPhone to the same Wi-Fi network as your Apple TV.
  2. Open the video you want to play.
  3. Tap the AirPlay button. In some apps you tap another button first, such as Share.
  4. Choose your Apple TV from the list.

To stop, tap the AirPlay button again and choose your iPhone.

In the YouTube app, AirPlay may not have its own button in the player. If your Apple TV isn’t listed under Cast and you don’t see an AirPlay option there, use Screen Mirroring below.

Mirror Your Whole iPhone Screen

  1. Open Control Center by swiping down from the upper-right corner of the screen. On an iPhone with a Home button, swipe up from the bottom edge.
  2. Tap Screen Mirroring.
  3. Choose your Apple TV.
  4. If an AirPlay passcode appears on the TV, enter it on your iPhone. Your iPhone screen now appears on the TV.

Open YouTube and play the video full screen. Turn the iPhone sideways so the picture fills the TV. To stop, open Control Center, tap Screen Mirroring, then tap Stop Mirroring.

AirPlay works in many apps, not just YouTube. You can also use AirPlay to view iPhone pictures on the Apple TV.

Some services work better as an app on the TV itself. For example, you can watch Twitch on an Apple TV without keeping your iPhone nearby.

Cable network apps work this way too. For example, you can watch USA Network on your TV with an Apple TV and an iPhone.

What to Do If Your Apple TV Doesn’t Show Up

Work through these in order and try casting again after each one.

  • Check the Wi-Fi network. Both devices must be on the same network for casting and AirPlay. Some routers have separate 2.4 GHz, 5 GHz, or guest networks with different names, and those count as different networks. If the Apple TV is on the wrong one, connect the Apple TV to your wireless network again, or use a TV code instead.
  • Turn on Local Network access. On your iPhone, open Settings, scroll down to the YouTube app, and turn on Local Network. Do this for each YouTube app you cast from, such as YouTube Music, YouTube Kids, or YouTube TV. If you don’t see YouTube in the list, go to Settings > Apps > YouTube.
  • Open YouTube on the TV first. The Apple TV can only receive a cast while its YouTube app can be reached, so start the app before you tap Cast.
  • Check AirPlay on the Apple TV. For AirPlay and Screen Mirroring, go to Settings > AirPlay and Apple Home on the Apple TV and make sure AirPlay is on. Under Allow Access, choose Anyone on the Same Network or Everyone if your iPhone isn’t allowed. For more detail, read about turning AirPlay on or off on the Apple TV.
  • Update the apps. Open the App Store on each device and install any YouTube update. An outdated app can hide the Cast button or fail to connect.
  • Restart both devices. Close YouTube on the iPhone, then restart the Apple TV from Settings > System > Restart. If problems continue, update the Apple TV in Settings > System > Software Updates.
  • Switch profiles if you use YouTube Kids. Casting may fail if the TV app is signed in to a YouTube Kids profile. Pick a different profile on the TV and try again.

Most connection problems come down to the network or the Local Network permission.

YouTube on Apple TV Questions

Do I need the YouTube app on my Apple TV?

For casting and TV codes, yes, since your iPhone sends instructions to that app. AirPlay and Screen Mirroring don’t need it, because the video comes from your iPhone.

Can I use my iPhone as a remote while the video plays?

Yes. When you cast, YouTube turns your phone into a companion for controlling playback. For help finding videos to send, read about watching YouTube videos on an iPhone.

Does this work with YouTube TV?

YouTube TV is a separate app, but YouTube’s casting page covers it too. Install YouTube TV on both devices, allow Local Network access for it on the iPhone, and tap Cast in its player.

Does this work for other video apps?

Many apps support AirPlay. For example, here’s how to AirPlay a Plex movie from an iPhone to an Apple TV. Some apps don’t support AirPlay, so check the Apple TV App Store for a version of the app.

Game streams look great on a big screen; here’s how to find YouTube gaming videos on iPhone.

Want live channels on your phone, too? You can get Sling TV on an iPhone.

Want to send YouTube to a different kind of TV? Read about the Watch on TV option in the iPhone YouTube app.