If I’m getting this question right, then the easiest way to do this is just to log out of the desktop session and then log back in.
In Linux, a desktop environment runs on top of a display server (name it Xorg or Wayland).
If you log out, the display server session ends and then a desktop manager comes in. When you log in, the desktop manager starts the display server, which in turn starts the desktop environment.