The “Not Secure” warning can be removed very quickly after installing a valid SSL certificate and switching the website to HTTPS.
In many cases, it disappears immediately or within a few hours. Sometimes it may take up to 24 hours for changes to fully apply.

