We replaceWe'll start by replacing $\bQ$ by a finite extension and will construct the desired variety there, so that the ultimate example will be obtained by considering that variety as a (non-geometrically connected) scheme over $\bQ$. Let $K/\bQ$ be a finite extension such that $E_1[3](K)=(\bZ/3)^2,E_2[3](K)=(\bZ/3)^2$.
Pick an injective function $a:(E_1\times E_2)[3](K)\to \bZ_{\geq 1}$ and define the variety $X$ as the following birational modification of the surface $Y_K$: for each $3$-torsion point $x\in (E_1\times E_2)[3](K)$ perform a blow-up of $E_1\times E_2$ at an infinitely near point of order $a(x)$ supported at $x$. The fiber of the map $X\to Y_K$ at a point $x$ is thus a chain of $a(x)$ copies of the projective line. There is also a natural integral model $\mathcal{X}$ of $X$ over $\bZ$$\mathcal{O}_K$, constructed by blowing up the product of models of $E_1$ and $E_2$.
Proof. An automorphism $g$ of $X_{\fp}$$X_{\overline{\bF}_p}$ induces a permutation of closed subvarieties of this surface that are isomorphic to $\bP^1$, preserving the incidence relation between them. In particular, for each $x\in Y[3](\overline{\bF}_p)$ the fiber of $X\to Y$ above $x$ is preserved by $g$. An automorphism of a chain of $\bP^1$s must have a fixed point, so $g$ admits a fixed point lying in the fiber of $X\to Y$ above $0\in Y_{\fp}=E_{1,\fp}\times E_{2,\fp}$$0\in Y_{\overline{\bF}_p}=E_{1,\overline{\bF}_p}\times E_{2,\overline{\bF}_p}$ and therefore $g$ descends to an automorphism of $Y_{\fp}$$Y_{\overline{\bF}_p}$ because $Y_{\fp}$$Y_{\overline{\bF}_p}$ can be established as the Albanese variety of $X_{\fp}$$X_{\overline{\bF}_p}$ wrt that fixed point.
If $E_{1,\fp}$$E_{1,\overline{\bF}_p}$ and $E_{2,\fp}$$E_{2,\overline{\bF}_p}$ are not isogenous then any automorphism $h$ of $Y_{\fp}$$Y_{\overline{\bF}_p}$ must be a product of automorphisms of $E_{1,\fp}$$E_{1,\overline{\bF}_p}$ and $E_{2,\fp}$$E_{2,\overline{\bF}_p}$ and, in particular, has finite order. For it to lift to an automorphism of $X_{\fp}$ the action of $h$ on $Y_{\fp}[3]$ must be trivial, but this forces $h$ to be trivial because any matrix in $GL_n(\bZ_3)$ congruent to $1$ mod $3$ has infinite order if it is not the identity.