Let $G$ be a subgroup of $\text{GL}(n, \mathbb{C})$. A polynomial $f \in \mathbb{C}[x_1, \ldots, x_n]$ is $G$-invariant if for any $g \in G$ we have $f(g^{-1}x) = f(x)$, $\forall x \in \mathbb{C}^n$, equivalently, $g(f) = f$.
The group $\text{SO}(n, \mathbb{R})$ is a subgroup of $\text{GL}(n, \mathbb{C})$. For any $\text{SO}(n, \mathbb{R})$-invariant polynomial $f \in \mathbb{C}[x_1, \ldots, x_n]$, does there exist a $\phi \in \mathbb{C}[t]$ where we have$$f(x_1, \ldots, x_n) = \phi\left(\sum_{i = 1}^n x_i^2\right)?$$