You may see an alert from Apple on your iPhone warning your device is at risk or has been infected with a virus or malware.
Several factors contribute to better battery performance, and in the latest system update, Apple added a background tool based on Apple Intelligence.