getVersion(); $os_version = $browser->getPlatformVersion( true ); $is_safari_without_gap_support = false; // because every browser on iOS is actually Safari we just check for the iOS version if ( $browser->getPlatform() === BrowserDetection::PLATFORM_IOS && version_compare( $os_version, '14.5', '<' ) ) { $is_safari_without_gap_support = true; } if ( $browser->getPlatform() === BrowserDetection::PLATFORM_MACINTOSH && $browser->getName() === BrowserDetection::BROWSER_SAFARI && $browser->compareVersions( $version, '14' ) <= 1 ) { $is_safari_without_gap_support = true; } if ( $is_safari_without_gap_support ) { add_action( 'wp_head', function () { ?> getPlatform() === BrowserDetection::PLATFORM_IOS || $browser->getPlatform() === BrowserDetection::PLATFORM_MACINTOSH ) { add_action( 'wp_head', function () { ?>