Enable the Enhanced Security Mode by going to Settings > Privacy, Search, and Services > Security and selecting Balanced or Strict settings.
Turn on Microsoft Defender SmartScreen and Block potentially unwanted apps in the Security section of the Edge browser settings.
Enable Tracking Prevention by going to Settings > Privacy, Search, and Services and ensuring the feature is enabled.
Run the Password Security Check in Settings > Profiles > Passwords to keep your passwords secure.
Enable auto clear for browsing data in Settings > Privacy, Search, and Services by selecting Clear Browsing Data on Close and specifying the items to be cleared.