In the Xbox app, click the console icon on the left sidebar. Select your Xbox from the list, then click “Remote play on this device” .
Microsoft knows that laptops don't have HDMI inputs, so they built a feature called into Windows 11. This streams your Xbox signal to your laptop over your home network (Wi-Fi or Ethernet).