Given a parallel plates capacitor with two dielectric as shown here:
(dielectrics stacked in parallel).
It's usually stated that the field is given by:
$\vec{E}=\sigma/\varepsilon_i \hat{z}$ where $\varepsilon_i$ is the medium permittivity. Considering the left dielectric extends from $x\rightarrow -\infty$ to $x=0$ and the right one from $x=0$ to $x\rightarrow \infty$, this implies (for a LIH medium):
$\vec{E}=\begin{cases}
\sigma/\varepsilon_1 \hat{z} & x\in (-\infty;0)\\
\sigma/\varepsilon_2 \hat{z} & x\in(0;\infty)
\end{cases}
$
within the capacitor.
However, in the electrostatic case $\nabla \times \vec{E} = 0 $. So between the dielectrics (at $x=0$) the boundary conditions tells me $E_{\parallel 1}=E_{\parallel 2}$ (reference: https://physicspages.com/pdf/Griffiths%20EM/Griffiths%20Problems%2004.33.pdf ). Nevertheless, according to the first expression this means $\sigma/\varepsilon_1= \sigma/\varepsilon_2$ which is false for two different dielectrics.
Please help me, I've been stuck on this for a while.