Can we assume that your inbound leg is on LH and your outbound is on UA? That could be a bit of a walk but nothing like FRA would be.
Last year, our UA flight from IAH to BUD started with a 1:15 connection in MUC. A later schedule change made it 55 minutes. Still doable. A thunderstorm at IAH delayed departure by 30 minutes but we landed MUC about 15 late. It was about a 15 minute walk to the LH gate. Still had time to hit the head. Arrived at the gate just as boarding began.
granted, we were in Biz class and seated near the exit door. That put us among the first to hit Passport control so no queue there yet. If you were in the back of the plane and among the last ones off, your timing would be different.
Regardless, it’s unlikely that the OP is going to be on a Jumbo jet so deplaning at the connecting airport shouldn’t take too long.