I would echo sacha's comments. I think to work on body recomposition through lifting you have to let go of the desire to see day-to-day results, changes on the scale, and stressing over every calorie. It's learning to switch over to maintenance- which sometimes involves a temporary gain of a few pounds as your body readjusts to a bit higher food intake. Like sacha said, it's thinking long-term rather than short-term.
I'm speaking as someone who is going through the same process right now. (While I already lift and have visible muscle definition, I am committing to do more serious strengthening.) I am refocusing my desire to see numbers drop on the scale each day to see real changes in my body. I have stopped overanalyzing every calorie and instead am working on reshaping- not reducing- the body I have. I have stopped calorie counting and caring about daily fluctuations in the scale. It's about letting go and trusting that the long-term process will take care of itself.
Good luck to you!

