Nevermind, I've got it already:
$L$ ad $\phi$ are invariants so,
$L\left(\phi(x),\frac{\partial \phi(x)}{\partial x},g(x)\right)=L'\left(\phi'(x'),\frac{\partial \phi'(x')}{\partial x'},g'(x')\right)\tag1$
where $g$ is the metric tensor, and
$\phi(x)=\phi'(x')\tag2$
The derivative of a scalar transforms as a rank 1 covariant tensor:
$\frac{\partial \phi}{\partial x^{\mu}}=\frac{\partial \phi'}{\partial x'^{\nu}}\frac{\partial x'^{\nu}}{\partial x^{\mu}}\tag3$
$\frac{\partial \phi'}{\partial x'^{\nu}}\left(\frac{\partial \phi}{\partial x} \right )=\frac{\partial \phi}{\partial x^{\mu}}\frac{\partial x^{\mu}}{\partial x'^{\nu}}\tag4$
We can show that $\frac{\partial L }{\partial \left(\frac{\partial \phi}{\partial x^{\mu}}\right)}$ transform as a rank 1 contravariant tensor as follows,
Using (1), and the fact that the derivatives of $\phi'$ w.r.t. the $x'$ can be written as a function of the derivatives of $\phi$ w.r.t. the $x$ as shown in (4):
$\frac{\partial L\left(\phi,\frac{\partial \phi}{\partial x},g\right)}{\partial \left( \frac{\partial\phi }{\partial x^{\mu}}\right )}= \frac{\partial L'\left(\phi',\frac{\partial \phi'}{\partial x'}(\frac{\partial \phi}{\partial x}),g'\right)}{\partial \left( \frac{\partial\phi }{\partial x^{\mu}}\right )}\tag5$
Chain Rule on the last term, then use (4):
$\frac{\partial L'}{\partial \left( \frac{\partial\phi '}{\partial x'^{\nu}}\right )}
\frac{\partial (\frac{\partial \phi'}{\partial x'^{\nu}})}{\partial (\frac{\partial \phi}{\partial x^{\mu}})}=\frac{\partial L'}{\partial \left( \frac{\partial\phi '}{\partial x'^{\nu}}\right )}
\frac{\partial (\frac{\partial \phi}{\partial x^{\gamma}}\frac{\partial x^{\gamma }}{\partial x'^{\nu}})}{\partial (\frac{\partial \phi}{\partial x^{\mu}})}\tag6$
And Finally this last term is:
$\frac{\partial L'}{\partial \left( \frac{\partial\phi '}{\partial x'^{\nu}}\right )}
\frac{\partial x^{\mu}}{\partial x'^{\nu}}\tag7$