Let $X$ be an $n\times p$ matrix and $A$ be a $n\times n$ matrix. When is it true that
$$\det (X^{\top}AX) = \det(A)\det(X^{\top}X)?$$
Let $X$ be an $n\times p$ matrix and $A$ be a $n\times n$ matrix. When is it true that
$$\det (X^{\top}AX) = \det(A)\det(X^{\top}X)?$$
(Edited to reflect change in problem) In general not true:
Let $X = e_1$ and $A$ be any matrix with $A_{11} = 0$. $X^T A X = 0$ whereas the the other quantity will be in general nonzero.
Now to think on it... Intuitively I suspect $X$ has to be full dimensional (ruling out silly cases like $0$ matrices), and at least if $\det(X) = 1$, then it's clear that $\det(X^T A X) = \det((X^T)^{-1} X^T A X X^{-1}) = \det(A)$.
In the case that $A$ is a positive diagonal matrix, (i.e. all non-diagonal entries are zero) we can set $$ X=\sqrt\lambda_2e_1-\sqrt\lambda_1e_2 $$ where $\lambda_1,\lambda_2$ are the first two diagonal entries of $A$.
The result is $X^TAX=0$