Okay, let’s look at this again.
As has already been pointed out, the electric and magnetic fields do not move in location from side to side. The diagrams show the strength of the fields, which is directional. The directions of the electric and the magnetic field strengths are perpendicular to the direction of motion of the wave, and to each other, but they are on the path of the wave, not moving from side to side next to it.
The wavelength is measured along the direction of propagation.
- The question is, how and why does wavelength affect the blocking of EM waves by a Faraday cage (metal mesh)? Why will a mesh block EM waves with a long wavelength, but not a short wavelength?
Firstly, wavelength and frequency are not independent. They are inversely related by
\large\lambda = \frac{c}{f}
where \lambda = wavelength, c = the speed of light, and f = frequency
So the longer the wavelength the lower the frequency, and the shorter the wavelength the higher the frequency.
So a mesh will block low frequency EM waves, like microwaves and radio, but not higher frequency EM waves, like visible and ultraviolet light.
The way a Faraday cage works is by blocking electric fields. Counter fields are induced in the metal that cancel it out. If the electric component of an EM wave is blocked then the magnetic component, which is not independent, will also be blocked.
The relationship between the size of the blocking effect and the size of the holes is extremely complicated. It depends on the size and shape of the holes, the thickness and shape of the metal (flat or round wires), and the type of metal, as well as the nature of the wave.
But, as a rough rule of thumb, it’s said that the size of the holes should smaller than the wavelength in order to block it. This is not an absolute rule, it’s a very rough guide to the relationship. In practice engineers will tend to make the holes a lot smaller than the wavelength if they want to block most of the EM waves.
The reason that EM waves get through the mesh at all is that above certain frequencies the mesh acts as a waveguide, and allows the EM wave to propagate.
However, waveguides have a cutoff frequency, due to modes of standing waves. Below a certain frequency (i.e. above a certain wavelength) the mesh will stop acting as a waveguide, and the EM waves will be blocked.
That is the reason why a mesh will block will block longer wavelengths (lower frequencies), but not shorter ones.