Android Developer having 3 years experience using Kotlin and java yes I have understood your problem there might not have been enough space for ad when it load it converts content as you Layouts might be Relative I have Created a banner ad generic class which can load both facebook and Admob ads looking forward to work with you.
Regards,
Waseem Ahmed.