On B.C.Hall book of Lie Algebra, it's clearly stated that $su(2)$ is not isomorphic to $sl(2, \Bbb R)$, the proof is left as an exercise.
My proposed proof use the fact that Hermitian matrix can be diagonalized through unitary matrix to show that there's no isomorphism that preserve the Lie bracket:
$X,Y,Z \in sl(2,\Bbb R)$
where the usual brackets are:
$[X,Y] = Z\,,\,[X,Z] = -2X\,,\,[Y,Z] = 2Y$
The isomorphism $\phi:sl(2,\Bbb R) \to su(2)$ must preserve the brackets, let's use the last one
$\phi(2Y) = \phi([Y,Z]) = [\phi(Y),\phi(Z)]$
$A\equiv \phi(Y)\in su(2)\,,\,B\equiv\phi(Z)\in su(2)$
$[A,B] = 2A$
Since $A$ is Hermitian we have
$A = W^*\Lambda W\,,\,W^*W=I$, where $\Lambda$ is a diagonal matrix
Substituting in $[A,B] = 2A$ and easy calculations show that
$[\Lambda,H] = 2\Lambda$
where $H\equiv WBW^* \in su(2)\,,\,\Lambda \in su(2)$
So we have that:
$\Lambda = \left[ \begin{array}{cc} s&0\\ 0&-s \end{array} \right]\,,\,H = \left[ \begin{array}{cc} r&\gamma^*\\ \gamma&-r \end{array} \right]\,,\,r,s\in\Bbb R$ and $\gamma \in \Bbb C $
and sobstituing in $[\Lambda,H] = 2\Lambda$ it's easy to see that matrix equation is satisfied only if $s = 0$
which would imply $\phi(Y)=A=\Lambda = 0$ and then $Y=0$ (cause $\phi$ is an isomorfism), which is absurd, so the brackets can't be preserved.
Is that proof correct?
I am a bit confused cause in the book M.D.Schwartz "Quantum field theory" on pag.162 he states $sl(2,\Bbb R) = su(2)$ , which seems incorrect to me, cause that equation would have sense only if there is a Lie algebra isomorphism between $sl(2,\Bbb R)$ and $su(2)$.