It will still pop the mains fuse if that happens. Even then since you or your guitar is no longer connected to earth ground, the only current draw you will feel is from the almost non-existent capacitance our bodies hold, you would feel it but since you are not completing a circuit you won't die and that is only up until he fuse pops which even for a slow blow is quick.
To anyone that is actually concerned about not having ground at their location, that is what earth lifting adapters are actually for (the 3 prong to 2 prong adapters). They have a hook on them so that you can move your earth to another location. If the screw that holds the outlet panel has a solid earth connection you can simply screw that adapter lug into that, if it doesn't have ground as in the case of really old houses pre 60s-70s and haven't been retrofited to three-prong or don't have the outlet casing connected to earth then all you have to do is get a length of wire, solder it and shrink wrap it to the prong adapter and to the other end solder/clamp/connect a copper rod and insert it to the nearest patch of moist soil and you have an earth connection. For both methods you can verify that by connecting a surge protector to that outlet adapter with it plugged in and switched on, if the surge strip has a ground indicator LED it should be lit, if not the soil isn't moist enough and/or the rod needs to be longer.
Back on topic, to the OP, just disconnect the ground connection at your cable. Easiest way to do that if you don't want to buy a DI is to get a cable that has access to the solder connections and cut off the ground connection on one side, any side will do. Conversely you could get a small hobby box that can hold two plastic 1/4" jacks (they must be plastic sleeve) and drill the box so that you can put the jacks inside and just solder the positive (tip) connections to each other, leaving the ground connections unconnected. Your amp's earth and your interfaces earth will no longer be connected. But you will need two cables instead of one.