You should have one HDMI port on a newer MacBook Pro. Then, get a USB-C HDMI Dongle; there is an Apple option available. I actually use a "j5create 10G | 4K60" portable dock that also offers a built-in USB-C port, giving you back the port it took up, along with the additional HDMI port, as well as standard USB ports and memory card readers. It also has a 1 G Ethernet port, which isn't great if you have a screaming fiber connection, but it's nice for travel. It was only around $80.
And hey, don't get fooled into trying to use BOTH HDMI ports on the dock, as my understanding is that the MacBook Pro, at least the 2021 M1 Max model, can only support one additional external monitor per USB-C port. I assume it works for a Windows-based system.