While using scrollIntoView my page on screen is reloading automatically

“I’m facing a problem while trying to scroll to view an element using the code driver.findElement(AppiumBy.androidUIAutomator("new UiScrollable(new UiSelector().scrollable(true)).scrollIntoView(new UiSelector().text(\"Display\"))")).click(); . My mobile screen is automatically reloading. Could you please provide a solution for this?”

Try using to go on the specific element using scroll

public class ScrollIntoView {

    public static void scrollIntoView(WebDriver driver, String selector) {
        int scrollCount = 0;

        while (scrollCount < 7) {
            WebElement element = driver.findElement(By.xpath("//android.widget.TextView[@text='" + selector + "']"));
            if (element.isDisplayed()) {
                break;
            }

            if (scrollCount >= 7) {
                break;
            }

            ((RemoteWebDriver) driver).executeScript("arguments[0].scrollIntoView(true);", element);
            scrollCount++;
        }
    }
public static void main(String[] args) {
        // Example usage
        WebDriver driver = new ChromeDriver(); // Initialize your WebDriver, e.g., ChromeDriver, FirefoxDriver, etc.
        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

        // Replace "YOUR_SELECTOR" with the actual selector you want to scroll into view
        scrollIntoView(driver, "YOUR_SELECTOR");
    }
}

Due to xpath is invisible getting NoSuchElement Exceptions While Excuting code.

Some invisible screen is blocking the driver from accessing the element?

ok how to resolve the issue

You need to ask your developer to fix it or you need to click on the other element which is clickable first to remove that screen and then proceed with your original test.