To change the auto-sleep mode on your iPhone, you can head over to Settings> Display and Brightness> Auto-lock > 15 seconds.