boot – Problems with booting Ubuntu from an external SSD

I have tried to create a portable Ubuntu installation (specifically, using this as guidance), and after following the steps from there, including the grub installation, it boots just fine on the laptop I used to install it.
However, when connecting the exgernal SSD to another machine, it gets stuck and splash screen.
Does anyone know what could cause this problem?