Urine RE and culture will rule out urinary infection.
You have to do stool RE and Culture for infection to find out the causebof mucus in stool.
Regarding lactose intolerance
you have to do stool for reducing substances.
It may be just a viral infection causing diarrhea
No need to change milk.
Give oral electrolytes and give some time and see.