The question arises when I am considering something which is similar to the case of isomorphism of fiber bundles.
Assume working over an algebraically closed field $k$. Let $E$ be a locally free sheaf of rank $N+1$ over Y, which is nonsingular, and hence $\mathbb{P}(E)$ be a projective space bundle over $Y$. Let $X$ be a nonsingular variety with a flat morphism $\pi: X\rightarrow Y$.
Now if there is a morphism $f: X\rightarrow \mathbb{P}(E)$ over Y, which induces an isomorphism on each fiber $f_y: X_y \rightarrow \mathbb{P}^N, \forall y \in Y$, then is the morphism $f$ itself also an isomorphism?
I think the statement should be true. In fact, if I can get a compatible local trivialization of $X$ over $Y$ like that of $\mathbb{P}(E)$, then this statement is actually the definition of an isomorhpism between fiber bundles.
I am also considering a more general question. Let $X$, $Y$ and $Z$ be nonsingular varieties, and there is a morphism $f: X\rightarrow Y$ over $Z$ which induces isomorphism on each fiber $f_z: X_z \rightarrow Y_z$. Then when is $f$ an isomorphism itself. Is it enough for me to assume $X\rightarrow Z$ and $Y\rightarrow Z$ are flat (or smooth to be stronger)? or maybe the question is easier when $Z$ is a curve?
I am not sure if there is any direct interpretation of this question in algebra.