In every criminal case or proceeding in which a person entitled by law to representation by counsel appears without counsel, the judge shall advise the person of the person’s right to representation by counsel and also that if the person is financially unable to obtain counsel, the court may appoint one at the cost to the State.