Use ResizeFrame function to set WEindowMode invalid

in c++ function FGoogleARCoreDevice::OnWorldTickStart 0, I want to use this code “GEngine->GameViewport->ViewportFrame->ResizeFrame(newSizeX, newSizeY, EWindowMode::Windowed);” to change the model of EWindowMOde::Windowed but failed. in my project , i was going to put my project to my android devices to set resolution, so I need to change the window mode. but failed