     @available(iOS, deprecated, message: "Please migrate to - findPrebidCreativeSize(_:success:failure:)")
     public func findPrebidCreativeSize(_ adView: UIView, completion: @escaping (CGSize?) -> Void) {
         
-        let view = self.recursivelyFindWebView(adView) { (subView) -> Bool in
-            return subView is WKWebView || subView is UIWebView
+        let view = self.findWebView(adView) { (subView) -> Bool in
+            return isWebView(subView)
         }
         
         if let wkWebView = view as? WKWebView  {

    
    func findHbSizeValue(in hbSizeKeyValue: String) -> String?{
        return matchAndCheck(regex: "[0-9]+x[0-9]+", text: hbSizeKeyValue)
    }
    
    func matchAndCheck(regex: String, text: String) -> String?{

        completion(size)
    }
    
    func findWebView(_ view: UIView, closure:(UIView) -> Bool) -> UIView? {
        if closure(view)  {
            return view
        } else {
            return recursivelyFindWebView(view, closure: closure)
        }
    }
    
    func recursivelyFindWebView(_ view: UIView, closure:(UIView) -> Bool) -> UIView? {
        for subview in view.subviews {
            
