Write some JS to address iOS iframe issue.