Those pop-up virus messages are ALWAYS a scam. They might claim to be from Apple but they’re not. Hysterically, it can even claim to be Microsoft tech support and my Mac clients still fall for it! Sometimes, like in the OP example, if you click on the link it will install some malware.
Typically, the “tech” get remote access to your computer, open the system log, and proceed to do very technical scary looking stuff. Then they’ll ask for a credit card number. Ostensibly this is for “lifetime protection”.
Having had maybe a dozen of my clients fall for this over the years, I worry that some sort of keylogger or spyware is being installed, but I think maybe all they’re after is the credit card number. Years ago they only charged a couple hundred dollars. The last incident I heard about it was $2500. Almost always the victims are older people who are pretty insecure about technology anyway.
Scammers that victimize older people really make me especially angry. It sure seems to me like with a trail left from a credit card there should be a means of cracking down on these people.