I put an isolation transformer in my lab
https://youtu.be/HdTagUVHR8s. I technically didn't "built" the transformer, instead I bought it, I just put it into an enclosure and wired it up. Yes, they are expensive but sometimes you can find a bargain as I did. Also look on eBay for used ones, especially those yellow boxes with isolation transformers mainly for building sites but make sure its really an isolation transformer with separated primary and secondary windings. Sometimes they sell transformers with just a single winding to get 2x115V out of 230V. You can't used those. Next, you need to be clear how many watts you need, the price climbs steeply the more power is needed. Normally I hang the DUT on the isolation transformer and leave the scope on normal mains (and grounded). This is safer because you usually touch the scope buttons and sockets way more than those of the DUT. Also it allows connecting USB cables/network cables to your scope which you can't if you hang it on an isolation transformer. However, if your DUT draws kilowatts, you may have no viable alternative and run it directly from mains and isolate the scope with its <100W instead.
BTW, in a crunch and not as a permanent solution, you can use two normal isolation transformers back to back, say 230Vin 12V out, connect the 12V to another transformer's 12V and you get 230V out on its primary, doubly isolated but there are some losses and of course the 12V need to be beefy, for 100W output the 12V better be able to support 10A on both transformers.
Lastly, even with isolation transformer, there are still plenty of ways to blow up the scope. My favourite one is forgetting that the 2nd, 3rd ... channel all use the same common as the 1st channel. Makes for some spectacular shorts.
To be honest, these days I am using my isolation transformer a lot less since having a 2nd battery powered scope is nowadays quite affordable and a true alternative for an isolation transformer (I am using an OWON HDS272 but there are plenty of similar ones. Something you may want to consider. Just make sure the USB cable to the charger/PC is NOT connected to the scope while measuring...