Ensuring scroll action needs to be done for particular heirarchy page or not

Test Scenario 1:

  1. I have module named as “Videos” in the hierarchy page and that “Videos” module presents in top of the hierarchy.
  2. I will click that “Videos”. module name.

Test Scenario 2:

  1. I have module named as “Videos” in the hierarchy page and that “Videos” module presents in bottom of the hierarchy.
  2. I will scroll till that module name as " Videos" and then i will click that “Videos”

I need to do both scenarios in one case, I want to ensure, does scroll action needs to be done for this particular page. Is it possible to check, particular page needs scroll action or not?

I need to test for both android as well as iOS.

I guess you could check for visibility and do something like How can I scroll in android/ios from top to bottom using appium driver?