LCD Screen Full Brightness then Dim

Why would the LCD screen turn completely on, the backlight turn off, and then the backlight turn on correctly/brightness is on? I am using LiquidCrystal I2C library.

Here is the relevant code.


#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() 
{
   Serial.begin(9600);
   int t = 0;
  lcd.init();
  lcd.backlight();
  lcd.print("Hello");
  
  delay(2000);
}

My guess is that it would be due to your power supply or some other aspect of hardware.
Can you post the schematic of your setup.