Place the portable air conditioner in a corner of the room that doesn't get a lot of sunlight. If possible, choose the cool part of the room so the unit doesn't heat up.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.