Yes, maybe my original post wasn't very clear. There are lower-level framework/libraries that focus on hardware/OS abstractions, such as SDL, SFML, GLFW, for example.
Then they are higher level game engine, which often relies on those libraries to provide portability across target platforms, which brings higher level features such as a game loop, physics, object/entity management, resource management, etc.
Some of the most popular engines out there at the moment are Godot, Unity, Unreal, GameMaker, etc. However one might struggle to hit the 4mb limit when using those.