It is well possible to attach a TV and a gamepad to an iPhone - there is an official adapter that plugs into the iPhone's lightning port and gives you an HDMI port and a vacant lightning port.
I don't know what functionality does that provide though. That probably does just screen mirroring + charging.