To play YouTube in the background on your iPhone, open the YouTube app and start your desired video. Then, press the home button (or swipe up on newer models) to exit the app. Next, open the Control Center by swiping down from the top right corner and tap the play button. Your video will continue playing in the background.