Scrape off the old wax ring from the flange, toilet base, and floor using a putty knife. Inspect the flange for cracks, rust, ...
If the toilet is still rocking, it could be from debris under it, loose pipes or a broken toilet flange ... Unscrew the closet bolts and lift the toilet straight up off the flange.