Is there a way to dynamically show/hide email template fields?

I have an email template being used by a New Order Process Definition, however the Orders module has many dependent fields that either show up or dont for the user depending on the state. I want the email template to be able to hide the fields with no input, otherwise we have too many blank fields showing up on the email. Is there a way to do this? I was trying to see if there was a way to make the class 'display:none' for blank fields but havent cracked it yet.