What should I do?

For the past month I have been constipated on and off. I’ll have an okay bowel movement (it’s still a little firm but I can pass them) and then sometimes I can’t go at all! And if I do, its just little turds and then I see bright red blood when I wipe. How can I fix this? 😭 it’s so uncomfortable.