Can anyone please give me some tips to improve my middle and endgame?
Yes. Review your losses and try to figure out some of the moves that you missed.
Like this one:
You took 5 seconds and lost a rook here by playing Rf1+.
You could have won a rook here.
It might have taken you a few minutes but that would have been okay. You had plenty of time...
That is the number one trick- take the time to understand the position and find the best moves.
Can anyone please give me some tips to improve my middle and endgame?