You are referring to the apex (bare, root) domain versus the subdomain?
example.com
to
www.example.com
This is something you have to set up via DNS redirects and your DNS control panel – that’s usually done via same website you purchased your domain name from.