There are many on this forum, I’ve noticed, that are preoccupied with examining every little thing they do through the lens of “sin.”
While sin is real, I doubt very much God gave us the gift of life to spend the eighty some-odd years we have on this rock obsessing about minutiae.
I think we’d all, deep down, prefer to be doing something else when we pray, in a manner of speaking. Think about it - what’s feels better? Kneeling in prayer at the foot of your bed or, let’s say, eating a piece of chocolate cake?
In that sense, one is clearly “preferable” than the other.
However, I think once we begin overly scrutinizing such natural feelings, explaining them in the context of sin, we begin to lose sight of the forest through the trees.
Try, of course, to focus your mind on God when you pray. What helps for me is talking to Him like I’m talking to a close friend. He understands that as humans, we have finite attention spans and capacities for discipline. The trick is to constantly try to improve yourself.
As to whether or not what you feel in the course of prayer would constitute a mortal sin, I doubt it, but I’m just one sinner talking to another.
The beautiful thing is, God has UNLIMITED mercy, and will help anyone who asks. Ask Him to help you! He will!
Peace be with you!