The rotation of a vertical interface in a porous medium