SANCTUM The Library

So the Pope and bishops can just make up whatever they want to teach?

That is nearly the opposite of how the Church describes it. The task of giving an authentic interpretation of the Word of God, in Scripture or in Tradition, has been entrusted to the living teaching office of the Church, exercised in the name of Jesus Christ by the bishops in communion with the successor of Peter. Yet this Magisterium is not superior to the Word of God, but its servant. It teaches only what has been handed on to it, listening devotedly, guarding it with dedication, and drawing all it proposes for belief from the single deposit of faith.

Catechism of the Catholic Church, §§ 85, 86.

Read the teaching itself: The Magisterium in the Catechism pages.