I'm having a weird bug or glitch with docking

I found a solution, but it’s not one I like — with the desktop version, if I make the grid vertical (top and bottom) it works on tablet and mobile no problem.

The problem only arrises when I set the desktop as horizontal (left and right) and then change the tablet and mobile to vertical (top and bottom).

I’m still hoping to find a fix to this problem however, because being unable to use horizontal on desktop in some areas is making my page too long.