Does Apple provide notifications if device is hacked
No, any scary popup about viruses on any computer can safely be ignored. An actual message from an actual virus scanner (which doesn’t exist on iOS anyway) will be more measured.