How to render / preprocess list of entity reference nodes?
As per @Clive comment, Fences module may be able to help with that.

A quite straightforward option would be to implement hook_node_view() in a custom module and add a #prefix and #suffix to the field element (prefix of &lt;div class="foo"&gt;, suffix of &lt;/div&gt;)