love.window.updateMode
Sets the display mode and properties of the window, without modifying unspecified properties.

If width or height is 0, updateMode will use the width and height of the desktop.

Changing the display mode may have side effects: for example, canvases will be cleared. Make sure to save the contents of canvases beforehand or re-draw to them afterward if you need to.
success = love.window.updateMode( width, height, settings )
width number Window width.
height number Window height.
settings table The settings table with the following optional fields. Any field not filled in will use the current value that would be returned by love.window.getMode.
settings.fullscreen boolean Fullscreen (true), or windowed (false).
settings.fullscreentype FullscreenType The type of fullscreen to use.
settings.vsync boolean True if LÖVE should wait for vsync, false otherwise.
settings.msaa number The number of antialiasing samples.
settings.resizable boolean True if the window should be resizable in windowed mode, false otherwise.
settings.borderless boolean True if the window should be borderless in windowed mode, false otherwise.
settings.centered boolean True if the window should be centered in windowed mode, false otherwise.
settings.display number The index of the display to show the window in, if multiple monitors are available.
settings.minwidth number The minimum width of the window, if it's resizable. Cannot be less than 1.
settings.minheight number The minimum height of the window, if it's resizable. Cannot be less than 1.
settings.highdpi boolean True if high-dpi mode should be used on Retina displays in macOS and iOS. Does nothing on non-Retina displays.
settings.x number The x-coordinate of the window's position in the specified display.
settings.y number The y-coordinate of the window's position in the specified display.
success boolean True if successful, false otherwise.