Polynomials over a field are an Euclidean domain relative to the degree function. In particular, for every polynomials $a(x)$ and $b(x)$ in $F[x]$, with $b(x)\neq 0$, there exist unique polynomials $q(x),r(x)\in F[x]$ such that $ a(x) = q(x)b(x) + r(x),\quad\mbox{$r(x)=0$ or $\mathrm{deg}(r)\lt \mathrm{deg}(b)$}$
So the Euclidean algorithm also applies to polynomials. In particular, if $q(x) = \gcd(m(x),n(x))$, then there exist polynomial $\alpha(x),\beta(x)$ such that $q(x) = \alpha(x)m(x) + \beta(x)n(x)$.
Now you can use the same proof as the proof of Euclid's Lemma for integers: if $a|bc$ and $\gcd(a,b)=1$, then $a|c$.