Hi @Lucas_Pinheiro !
To reference context variables in the Custom HTML Block, you’ll need to utilize JavaScript. Please see our documentation here.
In terms of referencing tags of a context variable device, please see our documentation here.
Additionally, here’s a thread which you may find helpful:
Please let us know if you have any remaining questions!