To connect an XLR microphone to your phone/tablet you need an audio interface.Â
The most simple ones are battery-powered and connect through the regular headphone socket of your device. Examples are the iRig PRE or the TASCAM iXZ.
More expensive audio interfaces use a digital audio connection to your device like the Focusrite iTrack Solo.Â
More information in this article.Â