Dear Customer, Thanks for your inquiry. Kindly note that this product does not have UL certification, but it does have CE and RoHS certifications. Thanks for choosing vevor.
It is not designed for flush mounting but you could use angle stock screwed to the sides to create a mounting flange but the lid would stick out about an inch. However, It may not meet code if that matters to you.