In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
2- The bathroom is not the ideal place to pray. So, if a convert could find a closet or find another place in the home to offer prayers, that’s fine. But if offering prayer in the bathroom really becomes your last resort, you can do so and may Allah the Almighty accept it from you.
Sheikh Omar Suleiman answers your question in this short video.
Almighty Allah knows best.