The first thing you should do is make sure you have a current and full backup of your User Data. A Time Machine backup is the best.
If you consider upgrading your Mac at this time consider the following: a 10 Core Mac Mini M4 with 16 GB RAM and 1 TB SSD ($1084 US) with a 32" LG 4k monitor ($331 US) from Amazon.com) is $1415 US which is $541US less than a similarly configured new 24" iMac ($1956 US) 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 for only $60 US more than the 27" (didn't know the Mini had a speaker). There are many monitors available in 27" size for $100 US to $500 US depending on what features you want. The monitor prices are before tariffs.
Just some food for thought.
