What are the constitutional and ethical challenges in balancing freedom of speech and contempt of court in India?

Recent Supreme Court actions on media content and public remarks highlight tensions between free expression and the judiciary's dignity. I want to explore how the Constitution and judicial precedents guide this balance, and what ethical dilemmas arise.