How do I force my URL to load https://www?

I am editing my .htaccess file and I am unsure how to force my website/url to load with https://www for all entered URLs.

For example, if I open the browser and enter google.com, I want the site to point to https://www.google.com. I have that working but if I enter https://mywebsite.example, the website still points to https://mywebsite.example.

How do I configure the .htaccess file to load https://www.mywebsite.example?

Here's my code:

RewriteOptions inherit

RewriteEngine on
RedirectMatch 301 ^/index.html?$ /index.php
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^MYWEBSITE.example [NC]
RewriteRule ^(.*)$ http://www.MYWEBSITE.example/$1 [L,R=301,NC]
RewriteCond %{HTTP_HOST} ^http://MYWEBSITE.example [NC]
RewriteRule ^(.*)$ http://www.MYWEBSITE.example/$1 [L,R=301,NC]
RewriteCond %{HTTP_HOST} ^http://MYWEBSITE.example [NC]
RewriteRule ^(.*)$ http://www.MYWEBSITE.example/$1 [L,R,NC]

example without https:// www

result of entering url without https:// www