Monitor going into a black screen

So for 3 months, my pc has been doing the same thing. I’m not sure if it’s the monitor or its the pc. What is happening is that everytime I boot my pc, it only works for 3 minutes then turns into a black screen. Can someone please help me?