I am a math major and I currently am preparing for admissions in a masters program.

Though late, but I realised that I have interest in philosophy as well and I think I want to pursue it professionally.

I would like to pursue philosophy of mathematics.

Is a change of stream necessary/possible? How can I go about this as I get into a masters program in mathematics?