HDMI display behavior on startup
It sounds like you have the external display set as the primary display.  Take a look at this article on how to set your primary display.

Set the Primary Display on a Mac