Brown spotting 25 weeks

Leanne

I’m nearly 25 weeks pregnant, just had a scan today and little lady is doing great. Does anyone know what would cause this? Thinking of phoning midwife tomorrow.. I’ve had it on and off for a couple of days.