Yes, the St. Michael prayer, or any other small prayer that you can repeat until the “wandering” ceases. Along with St… Michael I say, “JESUS, Mary and Joseph, please drive these devils from my mind, my heart, my body and soul. From this room and from this house”
Your mind does not wander on its own when you attempt to pray, you are being attacked and distracted by the devil to prevent you from praying.
Create whatever prayer you are comfortable with that calls out for help and repeat it until you have recovered.