Abstractly, I'm wondering if you can have a Lie group $G$ and a non-injective homomorphism $\phi: G \to G$, and a faithful representation $\rho_G$ of $G$ which is such that $\chi_{\rho_G} = \chi_{\rho_G \circ \phi}$. The idea is that since the trace only refers to diagonal elements, I feel like you should be able to fully characterize it via it's values on a subgroup. Specifically: we know that each maximal torus $T$ of a (compact, connected) Lie group $G$ contains elements of the conjugation classes of every element of $G$, and since trace is only defined up to conjugation class, we should be able to "project" elements to representatives of their conjugation class in $T$ without losing trace information. I'm wondering if we can do so homomorphically, rather than using an algorithm like "$\chi_G (g) = {\chi_{G}}_{\upharpoonright H} (a)$ where $a \in H \subset G$ is conjugate to $g$".
But, e.g., projecting onto the diagonal, or a map $A \mapsto tr(A)I$ aren't homomorphisms, and the only type of trace-preserving homomorphism I know of is a unitary transformation, which is an isomorphism.
Can anyone give an example of such a map, or does anyone know why it's not possible if it's not? I feel like I'm missing something obvious here.
For the revised question: Take $G$ to be the group of strictly upper triangular matrices in $SL(n, {\mathbb R})$ (strictly here means only $1$'s on the diagonal). Now, let $\phi: G\to G$ be any endomorphism, say, the trivial representation; let $\rho_G$ be the identity representation $G\to G< GL(n, {\mathbb R})$. You can find other examples by looking at the Borel subgroup $B< SL(n, {\mathbb R})$ (the subgroup of upper triangular matrices and taking $\rho_G=Id$, $\phi$ any endomorphism equal to the identity on the maximal torus in $G$.