Moving SSD between two PC's

Hi. I have two almost identical PC’s.

  • Asus Q270M-C Motherboards
  • i5-7400 CPU’s
  • 64G ram on both
  • Docking solution for SSD in the front so I easily can move the SSD between the two PC’s

It has worked fine for a while. I always carrying my SSD between my job and home. But after a new Qubes install (4.0.3) on a 1TB SSD it can only boot on the PC where I installed Qubes, not on the other PC. When I start the PC it goes into the BIOS and not futher.
Does it have something to do with Legacy/UEFI selections i BIOS?