Is this a miscarriage or uterine lining?

Francesca

Ive been having cramps and started to have brown discharge and then spotting of bleeding.

The cramps got worst through the night and I felt like I’d come on, so I went the the toilet and as I went to wipe this came out onto the tissue. I’m worried. Please has anyone else had this? Sorry about the photos