Proposition : let $G$ be a compact Lie group (with unit component $G^\circ$) whose Lie algebra is not perfect; let $G_\delta$ be the underlying discrete group. Then there is a semidirect decomposition $$G_\delta=L\ltimes V,$$ where $[G^\circ,G^\circ]\subset L$, the subgroup $L$ is dense in $G$, and $V\subset Z(G^\circ)$ is an abelian normal subgroup, isomorphic to a vector space over $\mathbf{Q}$, with $Z(G^\circ)/V$ countable.
Remark: if $G$ is connected, the above is a direct product decomposition: $G=L\ltimes V$.
A positive answer to your question follows from the proposition:
Corollary: $G$ has discontinuous automorphisms. More precisely, $|\mathrm{Aut}(G^\delta)|=2^{2^{\aleph_0}}$ (while $|\mathrm{Aut}(G)|\le 2^{\aleph_0}$ as topological group, with equality iff $G^\circ$ is non-abelian).
Proof of the corollary: we have $\dim_{\mathbf{Q}}(V)=2^{\aleph_0}$; view $V$ as $L$-module: this action factors through the finite group $G/G^\circ$. Hence $V$ is a direct sum of $2^{\aleph_0}$ irreducible submodules, which are finite-dimensional, and there are finitely many isomorphism types. Hence (after choosing a decomposition and some isomorphism type occurring with multiplicity $2^{\aleph_0}$), any permutation of this set yields an automorphism of the $L$-module $V$. Since any automorphism of the $L$-module $V$ extends to an automorphism of $G^\delta=L\ltimes V$ by putting identity on $L$, we deduce $\mathrm{Sym}(2^{\aleph_0})$ embeds as a subgroup of $\mathrm{Aut}(G^\delta)$. $\Box$
Proof of the proposition: start with $H=G/[G^\circ,G^\circ]$; this is a compact Lie group with $H^\circ$ abelian and nontrivial. There exists a countable subgroup $D$ of $H^\circ$ such that $DH^\circ=H$ (just lift elements of $H/H^\circ$ and take the subgroup it generates). Then $D\cap H^\circ$ is an $H$-submodule of $H^\circ$; note that the $H$-module structure factors through $H/H^\circ$ and hence is action of a finite group. Let $D'$ be a dense, countable divisible submodule of $H^\circ$ (take $D'$ to contain the torsion subgroup, and then use that in the quotient which is a rational vector space, every countable submodule is contained in a countable direct summand). Then $D'$ is normal in $H$, and define $E=DD'$, and let $L$ be the inverse image of $E$ in $G$; it is dense. Then $LZ(G^\circ)=G$, and since by construction $L\cap Z(G^\circ)$ is divisible and is a (countable) $G$-submodule of $Z(G^\circ)$ containing the torsion subgroup. Let $V$ be a direct summand of $L\cap Z(G^\circ)$ in $Z(G^\circ)$, as $G$-module. Then $G=L\ltimes V$ with the required properties.