Aimy Canonical Pro creates a canonical link tag for your website. If your website can be visited via more than one URL you can set the preferred domain name and protocol (http, https) with this plugin.
Demo: https://www.aimy-extensions.com/joomla/canonical.html