Apple doesn't offer a 27" iMac any more. Only a 24". You can get their 27" Studio Display for $1600 which is as much as a Mini and 32" monitor.
The difference between a Mac Mini and an iMac is about $500 - the mini being less. For example a 10 Core Mac Mini M4 with 16 GB RAM and 1 TB SSD ($999 + tax) with a 32" LG 4k monitor ($304 + tax from Amazon.com) is $1249 + tax which is $496 less than a similarly configured new 24" iMac ($1799 + tax) re 07/2025. Keep your keyboard and mouse from your current Mac for use with the Mini.
I got the above Mini with a 32" LG 4K monitor w/speakers because I didn't know the Mini had a speaker. I could have gotten a non speaker LG 32" monitor for about $60 less.
There is a plethora of large monitors out there for a variety of prices, from reasonable to expensive. But you have the choice of monitors with a Mini.
It's the best Mac I've owned and I've had them since the Apple][.
