Let $\pi:\mathcal{X} \to \mathbb{P}^1$ be a flat, projective family of noetherian schemes with generic fiber a smooth, projective variety. Let $p:\mathcal{Y} \to \mathcal{X}$ be another flat, projective family such that the composed morphism $\pi \circ p:\mathcal{Y} \to \mathbb{P}^1$ satisfies the property that for a general $t \in \mathbb{P}^1$, $\mathcal{Y}_t:=(\pi \circ p)^{-1}(t)$ is isomorphic to $\mathbb{P}^2_{\mathcal{X}_t}$, where $\mathcal{X}_t:=\pi^{-1}(t)$.
Does this imply that for any point $t \in \mathbb{P}^1$,$\mathcal{Y}_t \cong \mathbb{P}^2_{\mathcal{X}_t}$? If not true in general, is there any known condition under which this holds?
Any idea/reference in this direction will be very helpful.