You need to use same approach as with How to check if page element exists, but set “check if visible on a screen” option.