https://www.amazon.com/dp/B0756LQ6N6/ref=cm_sw_r_cp_apa_i_3I7ODbY5MWMK7
This is exactly what you are looking for, I use mine to connect my PS3, Switch, SNES mini, Wii U and cable box to one of the HDMI inputs of my 4K TV (I use the other two for my PS4 and Xbox One to prevent latency, in case you're wondering). It's currently unavailable but I think there's a newer model available from the same brand. I highly recommend it, I have no issues at all with it, there are cheaper options but they are not as good specially if you are planning to send 4K signals through the switcher.