Apple and Google have already installed spyware in your phone to do this. They did it in auto-installs in early September.
The spyware was installed without your consent. Check under your settings, it’s now there as a new icon “Exposure Notifications.”
Another reason why I don’t use a cell phone.