Can't access page without "www"

Hello, I can’t access my page without adding “www”. How do I make it so I don’t need it?

Example:

https://www.example.com work

but
https://example.com don’t

I get:
DNS_PROBE_FINISHED_NXDOMAIN

https://community.cloudflare.com/search?q=DNS_PROBE_FINISHED_NXDOMAIN

Fixed it myself.

Added an DNS A record that pointed to my 000webhost site IP, not the new domain IP.