Pooping on floor and wiping on walls 😩

I don’t have a lot of details, I’m trying to help my friend. She has about a 2 1/2 yr old. She’s been practicing potty training with her. She’s getting better at going to her chair but lately she’s been pooping on the floor and wiping it on the walls. She’s not sure what to do? She’s against putting her in the corner or anything and tried putting her in footy pjs backwards but she gets out 😂 Any moms on here deal with something similar or have any tips I can pass along?