Can a property that has been out of compliance for many years be “grandfathered” in and considered to be in compliance?

Yes. It is considered to be “legal nonconforming.” See statute LRS 9:5625.