As an example of a polynomial of this kind with Galois group $\cong S_4$ I proffer
$$
f(x)=x^4+2x^2-x-3\in\Bbb{Q}[x].
$$
It has exactly two real zeros because $f(0)<0$, $\lim_{x\to\pm\infty}f(x)=+\infty$, and because it's convex - $f''(x)=12x^2+4$ is positive everywhere.
It is irreducible, because reduction modulo $2$ gives $x^4+x+1$ which is irreducible in $\Bbb{F}_2[x]$. Therefore its Galois group, when viewed as a group of permutations of its roots, is a transitivie subgroup of $S_4$, so either $V_4, C_4, D_4, A_4$ or $S_4$. Complex conjugation is an automorphism of the splitting field that acts as a $2$-cycle on the non-real roots. This rules out alternatives other than $D_4$ and $S_4$.
The final needed bit is the observation that modulo the prime $p=3$ we have the factorization
$$
f(x)=x(x^3-x-1)\in\Bbb{F}_3[x].
$$
The cubic factor here is irreducible - see e.g. here.
By Dedekind's theorem, see e.g. here, we then know that there is a 3-cycle in the Galois group. This leaves $S_4$ as the only alternative for the Galois group.
Pleading quilty to reverse engineering this. I started with the desired factorizations modulo $2,3$, and played with what the Chinese Remainder Theorem let's me play with to find a polynomial that fits.