They are very much still kinda necessary. They prevent burn-in, which is still a possible issue on certain types of displays (like OLEDs).
Then again, even back in the hay day of screensavers you could have simply turned the monitor off and left the PC on. 🤷♂️