Please refer to the Apple Recommendations listed in How to clean your Apple products:
"Desktop computers
Learn how to clean your Mac desktop computer.
Mac Pro, Mac Studio, Mac mini, and iMac
If your iMac has nano-texture glass, learn how to clean the nano-texture glass on your Apple display.
First, shut down your Mac and unplug the power cord along with other connected devices. Then use a damp, soft, lint-free cloth to clean the computer's exterior. Avoid getting moisture in any openings. Don't spray liquid directly on the computer. Don't use aerosol sprays, solvents, abrasives, or cleaners containing hydrogen peroxide that might damage the finish.
To clean the display on your iMac, dampen the cloth that came with your iMac—or another clean, soft, lint-free cloth—with water only, and then wipe the screen. To clean hard-to-remove smudges, you can moisten the cloth with a 70-percent isopropyl alcohol (IPA) solution.
Don't clean the screen of your iMac with a cleaner containing acetone. Use a cleaner intended for use with a screen or display. Never spray cleaner directly on the screen. It might drip inside the display and cause damage."