$\DeclareMathOperator\tr{\mathrm{tr}}$Let $x$ be a standard normal $p$-variate random variable, which is independent of a symmetric positive definite random matrix $Y$. I would like to compute the mean and variance of the quadratic form $x^TYx$.
If $Y$ were not a random variable, then we could argue that the fact that quadratic forms are diagonalizable means that without the loss of generality we can assume that $Y$ is a diagonal matrix. And an entry-by-entry computation shows that the mean will be $\tr(Y)$ with variance $2 \tr(Y)$.
But if $Y$ is a random variable, I'm not sure it's so easy since though the mean is still $\tr(\mathbb{E}[Y])$, the variance of each entry now depends on $Y$ in a more complicated way, and since diagonalizing changes the diagonal entries in non-trivial ways, is it no longer possible to relate the variance to the trace of $Y$ or a related expression?