Question: Is there a Lie group $G$ that admits a smooth immersion $$i:G\longrightarrow\mathrm{GL}(n,\Bbb R)$$ for some $n\in\Bbb N$, but no smooth embedding $$j:G\longrightarrow\mathrm{GL}(m,\Bbb R)$$ for any $m\in\Bbb N$? (Here, $i$ and $j$ are also required to be group homomorphisms.)
The usual example of a Lie group which is immersed but not embedded is the group $\Bbb R$ with the immersion $$i:\Bbb R\longrightarrow\mathrm{GL}(2,\Bbb C),\quad t\longmapsto\begin{pmatrix}e^{it} & 0 \\ 0 & e^{i\alpha t}\end{pmatrix}$$ for $\alpha$ irrational. The so-called dense curve on the torus. However, here $\Bbb R$ do embed in $\mathrm{GL}(n,\Bbb R)$, but just in a different way: $$j:\Bbb R\longrightarrow \mathrm{GL}(2,\Bbb R),\quad t\longmapsto\begin{pmatrix}1 & t \\ 0 & 1\end{pmatrix}.$$
There are also well-known groups that have no injective homomorphism into $\mathrm{GL}(n,\Bbb R)$, but then they do not immerse either.
HINT:
You could consider the simply connected covering of $SL(2,\mathbb{R})$. There are others too.