If we take an enclosure as an example: depending on working frequency and enclosure dielectric properties, an antenna can not only be detuned but also lose precious dBs of efficiency. The enclosure or surrounding structures can great affect the EM field and propagation of the waves near an antennas and change its characteristics.