I am renovating my bathroom and when I removed the tiles from the walls, it took some of the render with it leaving an uneven surface to re-tile to

Can anyone offer how to apply a topping coat to make the surface flat and even.

The walls are made from clay brick