static config page for esp8266 but using wifimanager and network assigned ip

I am trying to make a config page that can have a static ip like 42.42.42.42 for my device.

I dont want to use mDns .local because it is not reliable and wont work with android devices.

how can i set this page so that any device can access it (android, windows, iphone etc)

but yet the esp8266 will use apconnect and wifimanager to get its ip for connecting to the internet?

if someone can help me with the lines of code i need to do this it would be great

i have the webpage currently working as .local so what modifications are needed to make this work??

this is what i have currently

void setup() 
{
  
  wifi_status_led_uninstall();
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);

  // wifi Manager to to handle wifi connection
  WiFiManager wifiManager;
    //wifiManager.resetSettings(); // Uncomment this to test WiFi Manager function
  wifiManager.autoConnect("AutoConnectAP");
   /*WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);
  
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }*/

  Serial.println("Wifi connection successful");

  if(!MDNS.begin("myconfigsite"))
  {
    Serial.println("Error Setting up Mdns");
  }
  else Serial.println("Mdns responder success");