Dear Student
There are three following conditions under which there is no lateral displacement
1. When a beam of light falls normally on the separating medium surface.
2. When the refractive indices of medium I and medium II are same.
3. If the thickness of the medium II is infinitesimally small.
Regards