I am looking at the rear ports of the M2 pro and I see 4x TB4 ports and 1x HDMI ... can't this drive 5x displays ?
If not, why not ?
There's hacky third party solutions to this, but they all involve giving questionable applications permission to record all your screens.
The Mac mini M1 requires a displaylink driver to support a third display, which in all cases requires uninterrupted screen recording permissions to function. M1 laptops require the same to support more than ONE external display, regardless of whether or not the laptop is in clamshell mode.
You'll note that, for example, on the Macbook Air (both M1 and M2 versions), Apple labels the ports "Thunderbolt / USB 4," which is confusing and IMHO downright misleading. Either way, the reason they do that is that those ports don't support dual displays, so they only meet the Thunderbolt 3 spec, which doesn't mandate dual displays.
A better label for the Macbook Air might be just "USB 4," or "USB 4 with Thunderbolt 3 support" (though TB3 is part of the USB 4 spec, so that's technically redundant).
USB/Thunderbolt standards are fun.
https://www.apple.com/mac-mini/specs/
And up to three monitors for certain models.