What would cause water temperature fluctuation from hot to cold when showering and how can it be fixed?

If this happens all the time with no other water being used, then you need to install a shower valve that is pressure balanced. Moen makes Posi-Temp and Delta makes the Monitor.