Modulated Shadows "going through" objects in mobile preview.

Is there a way for Modulated Shadows in mobile preview to only work in the first surface and to not “go through” many objects like in the Gif I uploaded?

248637-modulatedshadows1.gif