Put any item on a copper golem's head as a hat. Shift + right-click to add it, shears to remove it
Verified compatibility with new Minecraft version – no changes required.