Path Finding and AI in an ever changing Maze?

I am trying to find a way to set up an AI and a path finding system, but it is harder to work with an ever changing maze. The normal systems that unity has won’t really work with it, and I don’t know what to do.
The maze walls are rotating at random times.
If anyone has a solution that would be greatly appreciated.

Use the Unity built in NavMesh and NavMeshAgent.

See this quick and helpful tutorials for full explanation on how to achieve this.

This will wall you through the basics. The system is pretty easy to use and overall just requires some tweaking. The other option is to write your own nav AI. If this is the path you want to go down I recommend looking at A* Pathfinding Project

Good luck.