Ok...to begin with, the low voltage generated in the device is not isolated supply.
Then there is a possibility the heatsink plate may be connected to the line indirectly.
All the above is acceptable in a double insulated, encased, away from prying fingers, environment.
Bring any of it out to...