Just a caution here. The screen front is glass,
not plastic, and it is thin plate glass that can be quite fragile, so take care when removing -- be careful how you store it while it is removed.
And, the internals are not as obvious as Saturnine seems to think.
iFixit.com has good "opening-up" steps that will help you with the internals, such as replacing an older hard drive with an SSD.
Also, an older iMac might not have been upgraded to a system that has a Recovery partition (worked on a 2007 recently that was still on the original Tiger, which was never updated at all since new. Owner never connected to internet, only used it to store and edit photos and personal records. And, hard drives eventually fail...
The point is, a recovery mode reinstall is not always available. (Internet recovery also is not on those older iMacs, not until 2011 models

). That probably explains why I keep a box full of OS X/macOS bootable USB installers...