designResolutionSize: after upgrading cocos from 3.8 to 3.16 sprites messed up and scale not correctly

hi, I had a project made with cocos 3.8. All my image was made for ipad 1024x768, so my old
Director::getInstance()->getOpenGLView()->setDesignResolutionSize(1024, 768, kResolutionShowAll);
now I have the new:
static cocos2d::Size designResolutionSize = cocos2d::Size(1024, 768);
glview->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height,
ResolutionPolicy::NO_BORDER);

but when I test it on ipad 5 gen, the background sprite is a quarter of the screen, all scale factors are half and the positions of the object are messed up

if I use
static cocos2d::Size designResolutionSize = cocos2d::Size(2048,1536);
the background sprite is a quarter of the screen, but all sprites are in the correct positions…

I have to force
director->setContentScaleFactor(1);
to make it work

Am I missing something?
thanks