Nonlinear modulation of a transversally trapped mode