The topical use of imiquimod (IMQ), a non-specific immune response modifier, showed to be a promising therapeutic option for the early-stage treatment of some type of oral cancer, even when performed with a formulation (Aldara®) developed and approved for skin application. The aim of this work was the development of buccal formulations for the topical administration of IMQ with improved mucosal retention and reduced trans-mucosal permeation when compared to the reference formulation. Three different hydrogels based on carboxymethyl chitosan (CMChit), sodium alginate (A), and xanthan gum (X) in different combinations were prepared, and the loading of imiquimod was successfully performed by using a micellar formulation based on d-α-tocopheril polyethylene glycol 100 succinate (TPGS). Except for CMChit formulation, in all the other cases, the performance in vitro on the mucosa resulted comparable to the commercial formulation, despite the drug loading being 50-fold lower. Converting the gels in films did not modify the IMQ accumulated with respect to the correspondent gel formulation but produced as a positive effect a significant reduction in the amount permeated. Compared to the commercial formulation, this reduction was significant (p < 0.01) in the case of X film, resulting in an improvement of the retained/permeated ratio from 1 to 5.44. Mucoadhesion evaluation showed similar behavior when comparing the developed gels and the commercial formulation, and an excellent bioadhesion was observed for the films.