I use this with my M1 12.9 & Mini 6 connected to 4K LG monitor -
https://www.amazon.com/gp/product/B087QZVQJX
Also use this USB-C to HDMI cable to connect to my TVs (works with the monitor, too) -
https://www.amazon.com/gp/product/B07L882KQW/