How to apply different font size for the Code Mirror text

Either use markText or, if they are a specific kind of token in your mode, use CSS to style that token (i.e. .cm-keyword { font-size: 130% } to make keywords bigger).