Is there a suitable condensation membrane to use on a barn?

I am converting a barn that has a tin and slate roof. It’s in good condition but has no condensation membrane fixed under the rafters. Is there a proper product with a material guarantee that complies with building regulations that can be used, rather than taking off the whole roof to put on the membrane.