i asked chat gpt and this was the response:
The “Scan device” button is part of Google Play Protect, which is a malware-scanning service from Google built into Android.
It only becomes functional if you’ve installed sandboxed Google Play inside that profile.