Potty issues

My girl has been potty trained for well over a year and she is independent in all the steps. She just needs reminding to wash her hands and flush. For the last few months I have been encouraging her to go all by herself ( I used to always supervise and provide company since bathroom is upstairs) but this almost always ends in tears. She gets upset about something or sometimes wets herself before getting on the potty. I’m so frustrated! She is completely independent at daycare or when home with her dad. What can I do???