1.
General hypocrisy (e.g. saying "Raw fish is awful" and then enjoying some sushi) is forbidden as Rambam writes (Deos 2:6)
אסור לאדם להנהיג עצמו בדברי חלקות ופיתוי. ולא תהיה אחת בפה ואחת בלב,
אלא תוכו כברו; והעניין שבלב, הוא הדבר שבפה.
Idiomatic Translation (mine)
One should not express one thing verbally and another view in his
heart. Rather his inside must be consistent with his external
[presentation] and the internal feeling is what is verbally expressed.
Religious hypocrisy (e.g. saying "How can talk during davening!" and then talking during davening) includes the above issur and also includes the following:
2.
It violates the dictum (Yevamos 65b)
"Just as there is a mitzva to say something that will be listened to, so too, is there a mitzva not to say something that will be ignored."
A hypocrite when telling others what to do when personally ignoring what he is preaching will receive the response of "קשוט עצמך ואח"כ קשוט אחרים" ~ בבא בתרא ס', ע"ב" = Fix yourself first before fixing others!
3.
Hypocrisy causes Chillul Hashem by disenchanting and alienating those who are exposed to it from Judaism
אביי אמר כדתניא (דברים ו, ה) ואהבת את ה' אלהיך שיהא שם שמים מתאהב על
ידך שיהא קורא ושונה ומשמש ת"ח ויהא משאו ומתנו בנחת עם הבריות מה הבריות
אומרות עליו אשרי אביו שלמדו תורה אשרי רבו שלמדו תורה אוי להם לבריות
שלא למדו תורה פלוני שלמדו תורה ראו כמה נאים דרכיו כמה מתוקנים מעשיו
עליו הכתוב אומר (ישעיהו מט, ג) ויאמר לי עבדי אתה ישראל אשר בך אתפאר
אבל מי שקורא ושונה ומשמש ת"ח ואין משאו ומתנו באמונה ואין דבורו בנחת עם
הבריות מה הבריות אומרות עליו אוי לו לפלוני שלמד תורה אוי לו לאביו
שלמדו תורה אוי לו לרבו שלמדו תורה פלוני שלמד תורה ראו כמה מקולקלין
מעשיו וכמה מכוערין דרכיו ועליו הכתוב אומר (יחזקאל לו, כ) באמור להם עם
ה' אלה ומארצו יצאו
(Yoma 86a)
This portion of the Talmud is codified in Rambam (Yesodei HaTorah end of chapter 5) that behavior that reflects badly on Yiddishkeit is a Chillul Hashem and violates the positive and negative commandments regarding Chillul Hashem. He clearly states that the level of scrupulousness required by each individual is dependent on their level of scholarship (5:11).
It is well known that the Chafetz Chaim said that yeshiva boys are held to a higher standard than the general population and must act accordingly.
Hypocrisy is one of the most blatant forms of insincerity that often results in total disinterest and feelings of disgust by those who are exposed to it and causes people to have a negative attitude towards Torah, Mitzvos and Judaism which creates enormous Chillul Hashem.
Serious Consequences for Hypocritical Acts Committed Even With the Command of a Navi
See Targum Yonasan (Hoshea 1:4) who explains that the reason Achav was killed was for serving Avodah Zarah. Yehu and his family also served Avodah Zarah. Because Yehu followed in Achav's ways, he had no right to carry out the prophecy about Achav, and he was found to be deserving of punishment for killing Achav as if he spilled innocent blood.
This is found in much greater detail in Shmiras Halashon ch 17, a small snippet follows
