On this page
Compare the two hostnames
Use the DNS checker to compare A and AAAA for the root and www. Check whether www is an alias and confirm the expected root configuration with your provider.
Check the certificate and redirect
Run the SSL checker and redirect checker. Both names need valid HTTPS before one can reliably redirect to the other.