Why is this approach (checking if _desktop_ element is visible or not) better than the previous one (checking viewport size)?