The official solution from Google’s Android Security team (released via a Play Services update in May 2021) involved a three-step ADB (Android Debug Bridge) command via a PC:

The "You Are An Idiot" (YAAI) virus is a famous piece of annoyance-style malware that first appeared in the early 2000s. On Android in 2021, it primarily existed as a browser-based prank rather than a traditional file-infecting virus. Summary of the "Virus"