IANAL, but an option to consider is going to the US for the 3 months a tourist visa allows you. You can use this time to look for work and there shouldn't be any problems as long as you don't actually work ... and there shouldn't be any real problems even if you do work but that's highly illegal and I did not suggest you do anything like that.
A loophole exists however. You can open a business in the UK that does consulting for the US job so technically you are employed in the UK and are staying in the US on an extended business trip. These can legally last up to something like 6 months (I think). This should give you enough time to come up with a proper solution.
The consulting thing is how developers are usually employed in my neck of Europe because it enables a lot of tax tricks and is generally easier for people. And while this scenario is battle tested for remote work, I am not sure how it actually goes over when you also relocate to the US.
Take all of this with a grain of salt, consult with an immigration lawyer before you do anything.
A loophole exists however. You can open a business in the UK that does consulting for the US job so technically you are employed in the UK and are staying in the US on an extended business trip. These can legally last up to something like 6 months (I think). This should give you enough time to come up with a proper solution.
The consulting thing is how developers are usually employed in my neck of Europe because it enables a lot of tax tricks and is generally easier for people. And while this scenario is battle tested for remote work, I am not sure how it actually goes over when you also relocate to the US.
Take all of this with a grain of salt, consult with an immigration lawyer before you do anything.