To clean under the rim, use a toilet brush and squirt the cleaner around the top of the bowl. The brush needs to be immersed in a solution of bleach and water.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.