There are chips designed for dealing with floating power supplies that can provide ISOLATION.
Example: