Need help resolving domain redirect chain


My WP website redirects from http://www.example.com/ → https://www.example.com/ → https://example.com/

How do I resolve this issue and redirect from http://www.example.com/ → https://example.com/?

The goal here is redirect all versions of the website to https://example.com/.