This question already has an answer here:

When I remotely login to my Mojave Mac with screen share and a physical user is logged in with the monitor, I will be asked if I want to connect to the physical session or create a "background session" with another user.

But when the Mac is initialy physically at the loginscreen and I connect remotely, the monitor shows my remote login session.

Is it possible that the mac stays at the login screen, and I always connect in a background virtual session?

marked as duplicate by nohillside macos Sep 18 at 5:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.