The universal property says the following: for any pair of maps $i: Z \to X$ and $j: Z \to E$ fitting into the following commuting diagram where $p: E \to B$ is a fiber bundle (by the way this is true for any Serre fibration but I am applying it to a fiber bundle) $\require{AMScd}$ \begin{CD} Z @>j>> E \\ @ViVV @VVpV \\ X @>f>> B \end{CD} there exists a unique map $\psi: Z \to X \times_B E$ which factors through $i, j$ as follows (sorry I don't know how to draw the diagonal arrow) $\require{AMScd}$ \begin{CD} Z @>j>> E \\ @ViVV @AAA \\ X @<<< X \times_B E \end{CD} where $X \times_B E \to X$ is defined by $(x,e) \mapsto x$ and $X \times_B E \to E$ is defined by $(x,e) \mapsto e$.
Now suppose $i: Z \to X$ is also a fiber bundle over $X$ thus $\psi: Z \to X \times_B E$ defines a bundle map. $\require{AMScd}$ \begin{CD} Z @>\psi>> X \times_B E \\ @ViVV @VVV \\ X @= X \end{CD} My question is: when is $\psi$ an isomorphism of bundles? i.e. when does $\psi$ have an inverse?