You're not alone: Persistent horizontal lines appear on iMac screen. Several users have reported the cost of the repair to be around $600 US.
If you consider getting it fixed or getting a new iMac as a replacement consider the following: a 10 Core Mac Mini M4 with 16 GB RAM and 1 TB SSD ($1084) with a 32" LG 4k monitor ($331) from Amazon.com) is $1415 which is $541 less than a similarly configured new 24" iMac ($1956) re 07/2025. Keep your keyboard and mouse from your current Mac for use with the Mini. The prices preceding are before tariffs.
I got the above Mini with a 32" LG 4K monitor w/speakers for only $60 more than the 27" (didn't know the Mini had a speaker). There are many monitors available in 27" size on up for $100 to $500 depending on what features you want.
Just some food for thought.
