The way I try to do it, is by observing my avatar and especially my mind. That way I more and more identify with being conscious and aware and nothing else. This matrix can not trap no-thing, just what is from within this matrix can be trapped here.
I practice being NEO (None Emotional Observer) of my avatar and the mind. The more I manage to do that, the more I can see all the pre programming my avatar have. So when my avatar feel something, like anger, sorrow, sadness, joy, excitement, etc. I observe it, acknowledge it, but try not to let it consume me. Hopefully I’m a lousy loosh producer now, and that have not allways been the case. I have also worked on achieving lucidity in dreams and more and more often now, I have lucid dreams. That has helped me to not identifying with my avatar so much. When I meditate, I work on my sovereignty and I never do guided meditations. That is my preparation to exit this matrix when my avatar expires.