To invert the colors on an iPhone, you need to access the Display and Text Size section of the Accessibility menu in the Settings app. There, you'll find two options: Smart Invert and Classic Invert.