1. Double click on the icon and it'll open Windows Defender.
2. Click on "Tools -> Options".
3. Scroll down and select "Only if windows defender detects an action to take" option in "Choose when the windows defender icon appears in the notification area".
4. Now click on "Save" button.