The Blue channel is intermittently not working. Displays work with a combination of Red, Green and Blue colours. A combination of Red and Green light gives yellow, so when the blue channel is missing, everything turns yellow.
As patkim suggested, the Blue pin on the VGA connector may be loose. But the fault is more likely to be inside the monitor, or the wire carrying the blue signal in the cable may be broken. The most likely reason is that there is a bad connection inside the monitor, probably what is called a dry solder. One way to find out is to bang the monitor with your hand when the display has turned yellow. If normal colour is restored when you bang it, the defect is most probably a dry solder. This should not be a difficult job for a competent electronics technician.