X-rays are the exact same thing as any other electromagnetic radiation, just at a different frequency.
Generally a mesh can block an EMR signal if the holes are < 1/2 wavelength in size. X-rays have nanometer wavelengths so the mesh wouldn’t even be visible to the naked eye.