https://www.macworld.com/article/675869/how-to-connect-two-o...
With some docks and adapters like https://www.sonnettech.com/product/m1-mac-dual-displayport-a...
They’re not completely successful from what I hear, but I know it works for some folks.
I have an M1 Max so I haven’t tried myself.