After I did it I immediately fixed my mistake
That part is separate and should follow on as part of our reparation - for example if we say something false about another to our friend “She’s a liar never tells the truth” to our friend, then we are to fix it by telling our friend
we lied because that isn’t true and that we shouldn’t have said it.
but no one knew besides my knew friend.
Depending on "what’ it is, e.g. detraction or calumny it limits the damage done, depending again on what was said. You also forget God knows.
I kept researching things up
Please don’t do that. You won’t find the answer you are looking for. You need to discuss this with your priest, preferably in Confession.
it said that it could fall under mortal sin
If it is grave matter, yes. If it isn’t then no, it is venial.
If you knew before you did it that it is seriously wrong - then yes. If you didn’t know, then it becomes venial.
If you did it of your own free choosing, then there was full consent.
For a sin to be mortal - grave matter + full knowledge + full consent is necessary. Any of those three components are not present
at the time of acting, the sin is venial.
= Firm purpose of amendment which is part of the Act of Contrition.
prayed that it would fall into a venial sin.
praying/hoping does not change the fact of the gravity of the sin
after committing it.
Please give me some advice to help me move past this.
Go to confession and confess what you did to the priest and be guided by him.